summaryrefslogtreecommitdiff
path: root/src/server
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/server
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/server')
-rw-r--r--src/server/sv_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/sv_main.c b/src/server/sv_main.c
index 16bae3ab..6082c998 100644
--- a/src/server/sv_main.c
+++ b/src/server/sv_main.c
@@ -1081,13 +1081,13 @@ void SV_Frame( int msec ) {
// 2giga-milliseconds = 23 days, so it won't be too often
if ( svs.time > 0x70000000 ) {
SV_Shutdown( "Restarting server due to time wrapping" );
- Cbuf_AddText( va( "map %s\n", Cvar_VariableString( "mapname" ) ) );
+ Cbuf_AddText( va( "map \"%s\"\n", Cvar_VariableString( "mapname" ) ) );
return;
}
// this can happen considerably earlier when lots of clients play and the map doesn't change
if ( svs.nextSnapshotEntities >= 0x7FFFFFFE - svs.numSnapshotEntities ) {
SV_Shutdown( "Restarting server due to numSnapshotEntities wrapping" );
- Cbuf_AddText( va( "map %s\n", Cvar_VariableString( "mapname" ) ) );
+ Cbuf_AddText( va( "map \"%s\"\n", Cvar_VariableString( "mapname" ) ) );
return;
}