aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/dedicated
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2023-02-01 20:25:45 +0000
committerGitHub <noreply@github.com>2023-02-01 20:25:45 +0000
commitf7b7de8a584b877b9bf05fe63a0b0f91c7a5e944 (patch)
tree7c7095e5bf9004bcb180ae1fcc04982c798e7135 /NorthstarDLL/dedicated
parentd418217e0ac6ada2217d5e5171f6baa3707380c9 (diff)
downloadNorthstarLauncher-f7b7de8a584b877b9bf05fe63a0b0f91c7a5e944.tar.gz
NorthstarLauncher-f7b7de8a584b877b9bf05fe63a0b0f91c7a5e944.zip
Allow `launchplaylist` to be used to start dedicated servers (#409)
allow launchplaylist to be used to start dedicated servers
Diffstat (limited to 'NorthstarDLL/dedicated')
-rw-r--r--NorthstarDLL/dedicated/dedicated.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/NorthstarDLL/dedicated/dedicated.cpp b/NorthstarDLL/dedicated/dedicated.cpp
index 33a3f034..8f6f8fe6 100644
--- a/NorthstarDLL/dedicated/dedicated.cpp
+++ b/NorthstarDLL/dedicated/dedicated.cpp
@@ -48,9 +48,9 @@ void RunServer(CDedicatedExports* dedicated)
// initialise engine
g_pEngine->Frame();
- // add +map if not present
+ // add +map if no map loading command is present
// don't manually execute this from cbuf as users may have it in their startup args anyway, easier just to run from stuffcmds if present
- if (!Tier0::CommandLine()->CheckParm("+map"))
+ if (!Tier0::CommandLine()->CheckParm("+map") && !Tier0::CommandLine()->CheckParm("+launchplaylist"))
Tier0::CommandLine()->AppendParm("+map", g_pCVar->FindVar("match_defaultMap")->GetString());
// re-run commandline