aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/masterserver.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-11-29 01:06:10 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-11-29 01:06:10 +0000
commitac0c658516d8eaef2c788624f94e974ef47acbb8 (patch)
tree366e3b600788c35841610bfb469369800768d4f5 /NorthstarDedicatedTest/masterserver.cpp
parent9855e3c4efeb58fe298147fe52460b358739d7dc (diff)
downloadNorthstarLauncher-ac0c658516d8eaef2c788624f94e974ef47acbb8.tar.gz
NorthstarLauncher-ac0c658516d8eaef2c788624f94e974ef47acbb8.zip
web browser changes and dedi fixes
Diffstat (limited to 'NorthstarDedicatedTest/masterserver.cpp')
-rw-r--r--NorthstarDedicatedTest/masterserver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/NorthstarDedicatedTest/masterserver.cpp b/NorthstarDedicatedTest/masterserver.cpp
index 43db66e7..e8b1e1d9 100644
--- a/NorthstarDedicatedTest/masterserver.cpp
+++ b/NorthstarDedicatedTest/masterserver.cpp
@@ -480,7 +480,7 @@ void MasterServerManager::AddSelfToServerList(int port, int authPort, char* name
int currentModIndex = 0;
for (Mod& mod : g_ModManager->m_loadedMods)
{
- if (!mod.RequiredOnClient && !mod.Pdiff.size())
+ if (!mod.Enabled || (!mod.RequiredOnClient && !mod.Pdiff.size()))
continue;
modinfoDoc["Mods"].PushBack(rapidjson::Value(rapidjson::kObjectType), modinfoDoc.GetAllocator());
@@ -685,7 +685,7 @@ void CHostState__State_NewGameHook(CHostState* hostState)
Cbuf_AddText(Cbuf_GetCurrentPlayer(), "exec autoexec_ns_server", cmd_source_t::kCommandSrcCode);
Cbuf_Execute();
- // need to do this to ensure
+ // need to do this to ensure we don't go to private match
if (g_ServerAuthenticationManager->m_bNeedLocalAuthForNewgame)
SetCurrentPlaylist("tdm");