From dec7cc0fa56aa49bf27231cf15b2fea463a37a59 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Thu, 4 Aug 2022 12:44:00 +0200 Subject: [PATCH] Fix max_players showing incorrect max_player count Moved m_nMaxMilesAudioQueues in CGlobalVarsBase behind m_nMaxClients. m_nMaxClients and m_nGameMode align correctly now, including the mapname and mapversion in CGlobalVars --- r5dev/public/include/globalvars_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r5dev/public/include/globalvars_base.h b/r5dev/public/include/globalvars_base.h index 0a25ae8b..c3c47695 100644 --- a/r5dev/public/include/globalvars_base.h +++ b/r5dev/public/include/globalvars_base.h @@ -25,8 +25,8 @@ public: float m_fFrameTime; // Time spent on last server or client frame (has nothing to do with think intervals) (Also empty on dedicated) float m_fCurTime; char m_nPad0[24]; // All unknown. + int m_nMaxMilesAudioQueues; // Only used on the server. int m_nMaxClients; // Current maxplayers setting - int m_nMaxMilesAudioQueues_Maybe; // Only used on the server. GameMode_t m_nGameMode; // 1 (MP) 2 (PVE) 3 (SP) int m_nTickCount; // Simulation ticks - does not increase when game is paused - resets on restart. int m_nUnk0;