Make number of supported master servers tunable via define
This commit is contained in:
parent
bf07014b1d
commit
5c0ae99642
4 changed files with 13 additions and 15 deletions
|
@ -3717,9 +3717,9 @@ void CL_GlobalServers_f( void ) {
|
|||
char command[1024], *masteraddress;
|
||||
char *cmdname;
|
||||
|
||||
if ((count = Cmd_Argc()) < 3 || (masterNum = atoi(Cmd_Argv(1))) < 0 || masterNum > 4)
|
||||
if ((count = Cmd_Argc()) < 3 || (masterNum = atoi(Cmd_Argv(1))) < 0 || masterNum > MAX_MASTER_SERVERS - 1)
|
||||
{
|
||||
Com_Printf( "usage: globalservers <master# 0-4> <protocol> [keywords]\n");
|
||||
Com_Printf("usage: globalservers <master# 0-%d> <protocol> [keywords]\n", MAX_MASTER_SERVERS - 1);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue