check for hitting the maximum number of masters and print a message if so.

This commit is contained in:
Bill Currie 2001-07-19 07:07:32 +00:00
parent 5e81d80d8c
commit b23786880a

View file

@ -121,6 +121,11 @@ SV_SetMaster_f (void)
memset (&master_adr, 0, sizeof (master_adr));
for (i = 1; i < Cmd_Argc (); i++) {
if (i > MAX_MASTERS) {
SV_Printf ("Too many masters specified. Only using the first %d\n",
MAX_MASTERS);
break;
}
if (!strcmp (Cmd_Argv (i), "none")
|| !NET_StringToAdr (Cmd_Argv (i), &master_adr[i - 1])) {
SV_Printf ("Setting nomaster mode.\n");