mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-13 05:31:29 +00:00
This commit is contained in:
parent
f6ea5315f7
commit
d563deba76
2 changed files with 4 additions and 3 deletions
|
@ -103,10 +103,10 @@ typedef enum {
|
|||
|
||||
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;
|
||||
|
|
|
@ -1239,7 +1239,8 @@ static void ServerOptions_MenuInit( qboolean multiplayer ) {
|
|||
|
||||
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();
|
||||
|
|
Loading…
Reference in a new issue