From 1001f84f73ffc7cb3e2cae27c2ff252058e19e90 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 23 Aug 2022 00:18:52 +0200 Subject: [PATCH] Fix 'Script_GameRules_GetGameMode' not returning the current GameMode correctly ConVar 'mp_gamemode' had to have its FCVAR_DEVELOPMENTONLY flag removed. --- r5dev/tier1/IConVar.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/r5dev/tier1/IConVar.cpp b/r5dev/tier1/IConVar.cpp index 5130a305..4a5b8afe 100644 --- a/r5dev/tier1/IConVar.cpp +++ b/r5dev/tier1/IConVar.cpp @@ -256,6 +256,7 @@ void ConVar::InitShipped(void) const cl_threaded_bone_setup->RemoveFlags(FCVAR_DEVELOPMENTONLY); rui_defaultDebugFontFace->RemoveFlags(FCVAR_DEVELOPMENTONLY); origin_disconnectWhenOffline->RemoveFlags(FCVAR_DEVELOPMENTONLY); + mp_gamemode->RemoveFlags(FCVAR_DEVELOPMENTONLY); #endif // !DEDICATED mp_gamemode->RemoveChangeCallback(mp_gamemode->m_fnChangeCallbacks[0]); mp_gamemode->InstallChangeCallback(MP_GameMode_Changed_f, false);