summaryrefslogtreecommitdiff
path: root/src/game/g_maprotation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_maprotation.c')
-rw-r--r--src/game/g_maprotation.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/g_maprotation.c b/src/game/g_maprotation.c
index fde6f8fc..0487079c 100644
--- a/src/game/g_maprotation.c
+++ b/src/game/g_maprotation.c
@@ -130,6 +130,9 @@ G_PerformMapRestart
*/
void G_PerformMapRestart( void )
{
+ char map[ MAX_CVAR_VALUE_STRING ];
+ trap_Cvar_VariableStringBuffer( "mapname", map, sizeof( map ) );
+ G_MapConfigs( map );
level.restarted = qtrue;
trap_SendConsoleCommand( EXEC_APPEND, "map_restart\n" );
}
@@ -142,6 +145,7 @@ G_PerformMapChange
void G_PerformMapChange( const char *map )
{
char buf[ MAX_STRING_CHARS ];
+ G_MapConfigs( map );
level.restarted = qtrue;
Q_snprintf( buf, sizeof( buf ), "map \"%s\"\n", map );
trap_SendConsoleCommand( EXEC_APPEND, buf );
@@ -895,9 +899,6 @@ static void G_IssueMapChange( int index, int rotation )
G_PerformMapChange( map->name );
- // Load up map defaults if g_mapConfigs is set
- G_MapConfigs( map->name );
-
if( strlen( map->postCommand ) > 0 )
trap_SendConsoleCommand( EXEC_APPEND, map->postCommand );
}