summaryrefslogtreecommitdiff
path: root/src/game/g_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r--src/game/g_main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c
index b3d36bad..c8e0af41 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -597,6 +597,10 @@ void G_InitGame( int levelTime, int randomSeed, int restart )
// we're done with g_mapConfigs, so reset this for the next map
trap_Cvar_Set( "g_mapConfigsLoaded", "0" );
+ // set this cvar to 0 if it exists, but otherwise avoid its creation
+ if( trap_Cvar_VariableIntegerValue( "g_rangeMarkerWarningGiven" ) )
+ trap_Cvar_Set( "g_rangeMarkerWarningGiven", "0" );
+
G_RegisterCommands( );
G_admin_readconfig( NULL );
G_LoadCensors( );
@@ -2397,6 +2401,7 @@ void G_RunFrame( int levelTime )
G_CalculateAvgPlayers( );
G_UpdateZaps( msec );
}
+ G_UpdateBuildableRangeMarkers( );
// see if it is time to end the level
CheckExitRules( );