Update invalid g_gametype right away

This commit is contained in:
Zack Middleton 2013-02-11 16:43:18 -06:00
parent 50e85b23b3
commit c9137d9d14

View file

@ -357,6 +357,7 @@ void G_RegisterCvars( void ) {
if ( g_gametype.integer < 0 || g_gametype.integer >= GT_MAX_GAME_TYPE ) {
G_Printf( "g_gametype %i is out of range, defaulting to 0\n", g_gametype.integer );
trap_Cvar_Set( "g_gametype", "0" );
trap_Cvar_Update( &g_gametype );
}
level.warmupModificationCount = g_warmup.modificationCount;