aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/shared/playlist.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2023-02-12 21:15:00 +0000
committerGitHub <noreply@github.com>2023-02-12 21:15:00 +0000
commit95b41b6f8cc612953eafd7f8b6b40124e1590bc7 (patch)
tree400746bace6855c210e020a5ca93b84c2fdd0dc9 /NorthstarDLL/shared/playlist.cpp
parentb61ed18a86ddd2d7ab0e80992859750a49a9c4f6 (diff)
downloadNorthstarLauncher-95b41b6f8cc612953eafd7f8b6b40124e1590bc7.tar.gz
NorthstarLauncher-95b41b6f8cc612953eafd7f8b6b40124e1590bc7.zip
Add `CGlobals` class and `g_pGlobals`, and update code to support (#411)
* add CGlobals class and g_pGlobals, and update scripts to support * don't automatically enable antispeedhack (oops) * add dedicated.cpp * format * bad push oops * reformat again
Diffstat (limited to 'NorthstarDLL/shared/playlist.cpp')
-rw-r--r--NorthstarDLL/shared/playlist.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/NorthstarDLL/shared/playlist.cpp b/NorthstarDLL/shared/playlist.cpp
index 2fb856b3..7c8f7312 100644
--- a/NorthstarDLL/shared/playlist.cpp
+++ b/NorthstarDLL/shared/playlist.cpp
@@ -4,6 +4,7 @@
#include "core/convar/convar.h"
#include "squirrel/squirrel.h"
#include "engine/hoststate.h"
+#include "engine/r2engine.h"
#include "server/serverpresence.h"
AUTOHOOK_INIT()
@@ -26,7 +27,7 @@ char, __fastcall, (void* a1, void* a2))
{
// the private_match playlist on mp_lobby is the only situation where there should be any legitimate sending of this netmessage
if (!Cvar_ns_use_clc_SetPlaylistVarOverride->GetBool() || strcmp(R2::GetCurrentPlaylistName(), "private_match") ||
- strcmp(R2::g_pHostState->m_levelName, "mp_lobby"))
+ strcmp(R2::g_pGlobals->m_pMapName, "mp_lobby"))
return 1;
return clc_SetPlaylistVarOverride__Process(a1, a2);