Make number of supported master servers tunable via define

This commit is contained in:
Thilo Schulz 2011-01-25 02:04:25 +00:00
parent bf07014b1d
commit 5c0ae99642
4 changed files with 13 additions and 15 deletions

View file

@ -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;
}