summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_admin.c4
-rw-r--r--src/game/g_maprotation.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index f15f3469..3b8dcdab 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -2021,7 +2021,7 @@ qboolean G_admin_changemap( gentity_t *ent )
admin_log( map );
admin_log( layout );
- trap_SendConsoleCommand( EXEC_APPEND, va( "map %s", map ) );
+ trap_SendConsoleCommand( EXEC_APPEND, va( "map \"%s\"\n", map ) );
level.restarted = qtrue;
AP( va( "print \"^3changemap: ^7map '%s' started by %s^7 %s\n\"", map,
( ent ) ? ent->client->pers.netname : "console",
@@ -2724,7 +2724,7 @@ qboolean G_admin_restart( gentity_t *ent )
!Q_stricmp( teampref, "keepteamslock" ) )
trap_Cvar_Set( "g_lockTeamsAtStart", "1" );
- trap_SendConsoleCommand( EXEC_APPEND, "map_restart" );
+ trap_SendConsoleCommand( EXEC_APPEND, "map_restart\n" );
AP( va( "print \"^3restart: ^7map restarted by %s %s %s\n\"",
( ent ) ? ent->client->pers.netname : "console",
diff --git a/src/game/g_maprotation.c b/src/game/g_maprotation.c
index 082815b9..e9f87b37 100644
--- a/src/game/g_maprotation.c
+++ b/src/game/g_maprotation.c
@@ -869,7 +869,7 @@ static void G_IssueMapChange( int index, int rotation )
trap_Cvar_Set( "g_layouts", map->layouts );
}
- trap_SendConsoleCommand( EXEC_APPEND, va( "map %s\n", map->name ) );
+ trap_SendConsoleCommand( EXEC_APPEND, va( "map \"%s\"\n", map->name ) );
// Load up map defaults if g_mapConfigs is set
G_MapConfigs( map->name );