diff --git a/csgo2/csgo2.vcxproj b/csgo2/csgo2.vcxproj index 96b205a..33fcf4c 100644 --- a/csgo2/csgo2.vcxproj +++ b/csgo2/csgo2.vcxproj @@ -154,7 +154,7 @@ pch.h stdcpplatest MultiThreaded - Disabled + MaxSpeed Windows diff --git a/csgo2/hooks.cpp b/csgo2/hooks.cpp index df09479..aca486b 100644 --- a/csgo2/hooks.cpp +++ b/csgo2/hooks.cpp @@ -79,14 +79,12 @@ void __fastcall hook_GameFrame(void* rcx, bool simulating, bool bFirstTick, global::m_flLastTickedTime = global::GlobalVars->curtime; global::HasTicked = true; - if (global::EntitySystem == nullptr) { - global::EntitySystem = CGameEntitySystem::GetInstance(); - } - GameTimer::ExcuteTimers(); GameTickRunTime::ExcuteTickFunctions(); } - + if (global::EntitySystem == nullptr) { + global::EntitySystem = CGameEntitySystem::GetInstance(); + } return origin_GameFrame(rcx, simulating, bFirstTick, bLastTick); } void __fastcall hook_StartServer(void* rcx,