summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
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
commitad5130290834957a2637e899ffa847420d0510fe (patch)
treed84d7d55fbe902f5b974b4d57fc45ea0a79a3ba6 /src/game
parent39e8a98f7b567aaefa844edc040b1952ee40a6d6 (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')
-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 );