mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-06 18:08:36 +00:00
Make finding the sv_lan ConVar a static operation (#2258)
Co-authored-by: Malifox <78408070+Maliwolf@users.noreply.github.com>
(cherry picked from commit 25faf18760)
This commit is contained in:
parent
b4cb8789fa
commit
8f921d971d
@ -57,7 +57,6 @@ typedef ICommandLine *(*FakeGetCommandLine)();
|
||||
#define VSTDLIB_NAME FORMAT_SOURCE_BIN_NAME("vstdlib")
|
||||
|
||||
CHalfLife2 g_HL2;
|
||||
ConVar *sv_lan = NULL;
|
||||
|
||||
static void *g_EntList = NULL;
|
||||
static void **g_pEntInfoList = NULL;
|
||||
@ -787,7 +786,7 @@ void CHalfLife2::ProcessFakeCliCmdQueue()
|
||||
|
||||
bool CHalfLife2::IsLANServer()
|
||||
{
|
||||
sv_lan = icvar->FindVar("sv_lan");
|
||||
static ConVar *sv_lan = icvar->FindVar("sv_lan");
|
||||
|
||||
if (!sv_lan)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user