mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-18 18:01:13 +00:00
check for hitting the maximum number of masters and print a message if so.
This commit is contained in:
parent
5e81d80d8c
commit
b23786880a
1 changed files with 5 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue