diff options
author | /dev/humancontroller <devhc@example.com> | 2015-06-08 17:44:55 +0200 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-02-08 02:17:01 +0100 |
commit | ad5130290834957a2637e899ffa847420d0510fe (patch) | |
tree | d84d7d55fbe902f5b974b4d57fc45ea0a79a3ba6 /src/game/g_admin.c | |
parent | 39e8a98f7b567aaefa844edc040b1952ee40a6d6 (diff) |
add missing trailing '\n's from strings to execute; add double quotes around substituted argument strings
also transform trailing ';'s to '\n's
Diffstat (limited to 'src/game/g_admin.c')
-rw-r--r-- | src/game/g_admin.c | 4 |
1 files changed, 2 insertions, 2 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", |