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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c
index 6bd86887..5ab04d94 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -1641,11 +1641,11 @@ void ExitLevel( void )
gclient_t *cl;
if ( G_MapExists( g_nextMap.string ) )
- trap_SendConsoleCommand( EXEC_APPEND, va("map \"%s\"\n", g_nextMap.string ) );
+ G_PerformMapChange( g_nextMap.string );
else if( G_MapRotationActive( ) )
G_AdvanceMapRotation( 0 );
else
- trap_SendConsoleCommand( EXEC_APPEND, "map_restart\n" );
+ G_PerformMapRestart();
trap_Cvar_Set( "g_nextMap", "" );