diff --git a/r5dev/engine/host_state.cpp b/r5dev/engine/host_state.cpp index 2428f1a1..007ebc36 100644 --- a/r5dev/engine/host_state.cpp +++ b/r5dev/engine/host_state.cpp @@ -230,7 +230,6 @@ FORCEINLINE void CHostState::Think(void) const static bool bInitialized = false; static CFastTimer banListTimer; static CFastTimer pylonTimer; - static CFastTimer reloadTimer; static CFastTimer statsTimer; if (!bInitialized) // Initialize clocks. @@ -241,7 +240,6 @@ FORCEINLINE void CHostState::Think(void) const pylonTimer.Start(); #endif // DEDICATED statsTimer.Start(); - reloadTimer.Start(); #endif // !CLIENT_DLL bInitialized = true; } @@ -281,10 +279,9 @@ FORCEINLINE void CHostState::Think(void) const #ifndef CLIENT_DLL if (sv_autoReloadRate->GetBool()) { - if (reloadTimer.GetDurationInProgress().GetSeconds() > sv_autoReloadRate->GetDouble()) + if (g_ServerGlobalVariables->m_flCurTime > sv_autoReloadRate->GetDouble()) { Cbuf_AddText(Cbuf_GetCurrentPlayer(), "reload\n", cmd_source_t::kCommandSrcCode); - reloadTimer.Start(); } } if (statsTimer.GetDurationInProgress().GetSeconds() > sv_statusRefreshRate->GetDouble())