From ad5130290834957a2637e899ffa847420d0510fe Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Mon, 8 Jun 2015 17:44:55 +0200 Subject: add missing trailing '\n's from strings to execute; add double quotes around substituted argument strings also transform trailing ';'s to '\n's --- src/game/g_admin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/g_admin.c') 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", -- cgit