[quake3-commits] r1845 - in trunk/code: game q3_ui
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Feb 4 09:44:17 EST 2011
Author: thilo
Date: 2011-02-04 09:44:17 -0500 (Fri, 04 Feb 2011)
New Revision: 1845
Modified:
trunk/code/game/bg_public.h
trunk/code/q3_ui/ui_startserver.c
Log:
Fix https://bugzilla.icculus.org/show_bug.cgi?id=4733
Modified: trunk/code/game/bg_public.h
===================================================================
--- trunk/code/game/bg_public.h 2011-02-04 14:19:51 UTC (rev 1844)
+++ trunk/code/game/bg_public.h 2011-02-04 14:44:17 UTC (rev 1845)
@@ -103,10 +103,10 @@
GT_TEAM, // team deathmatch
GT_CTF, // capture the flag
- GT_MAX_GAME_TYPE, // other gametypes haven't been implemented.
GT_1FCTF,
GT_OBELISK,
- GT_HARVESTER
+ GT_HARVESTER,
+ GT_MAX_GAME_TYPE
} gametype_t;
typedef enum { GENDER_MALE, GENDER_FEMALE, GENDER_NEUTER } gender_t;
Modified: trunk/code/q3_ui/ui_startserver.c
===================================================================
--- trunk/code/q3_ui/ui_startserver.c 2011-02-04 14:19:51 UTC (rev 1844)
+++ trunk/code/q3_ui/ui_startserver.c 2011-02-04 14:44:17 UTC (rev 1845)
@@ -1239,7 +1239,8 @@
memset( &s_serveroptions, 0 ,sizeof(serveroptions_t) );
s_serveroptions.multiplayer = multiplayer;
- s_serveroptions.gametype = (int)Com_Clamp( 0, GT_MAX_GAME_TYPE - 1, trap_Cvar_VariableValue( "g_gameType" ) );
+ s_serveroptions.gametype = (int) Com_Clamp(0, ARRAY_LEN(gametype_remap2) - 1,
+ trap_Cvar_VariableValue("g_gametype"));
s_serveroptions.punkbuster.curvalue = Com_Clamp( 0, 1, trap_Cvar_VariableValue( "sv_punkbuster" ) );
ServerOptions_Cache();
More information about the quake3-commits
mailing list