From 1db53a135f61dc3f3e36a361c20b74b6e01a906f Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 12 Feb 2023 11:49:39 +0100 Subject: [PATCH] Fix dedicated.dll compile error 'g_svNetKey' no longer exists. --- r5dev/engine/host_state.cpp | 2 +- r5dev/engine/net.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/r5dev/engine/host_state.cpp b/r5dev/engine/host_state.cpp index 3b5e79ec..39f65ad8 100644 --- a/r5dev/engine/host_state.cpp +++ b/r5dev/engine/host_state.cpp @@ -264,7 +264,7 @@ FORCEINLINE void CHostState::Think(void) const mp_gamemode->GetString(), hostip->GetString(), hostport->GetString(), - g_svNetKey, + g_pNetKey->GetBase64NetKey(), std::to_string(*g_nServerRemoteChecksum), SDK_VERSION, std::to_string(g_pServer->GetNumHumanPlayers() + g_pServer->GetNumFakeClients()), diff --git a/r5dev/engine/net.h b/r5dev/engine/net.h index 8d044374..bd89a5c6 100644 --- a/r5dev/engine/net.h +++ b/r5dev/engine/net.h @@ -83,7 +83,6 @@ class VNet : public IDetour v_NET_ReceiveDatagram = p_NET_ReceiveDatagram.RCast(); /*E8 ?? ?? ?? ?? 84 C0 75 35 48 8B D3*/ v_NET_SendDatagram = p_NET_SendDatagram.RCast(); /*48 89 5C 24 08 48 89 6C 24 10 48 89 74 24 18 57 41 56 41 57 48 81 EC ?? 05 00 00*/ v_NET_PrintFunc = p_NET_PrintFunc.RCast(); /*48 89 54 24 10 4C 89 44 24 18 4C 89 4C 24 20 C3 48*/ - } virtual void GetVar(void) const {