From 655fdaf71863ccb73ceaaa5fb583ddc896bb8869 Mon Sep 17 00:00:00 2001 From: golukon Date: Sat, 28 Dec 2024 02:44:56 +0300 Subject: [PATCH] fix: calculate fun UpdateLocation not so often --- regamedll/dlls/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regamedll/dlls/player.cpp b/regamedll/dlls/player.cpp index 3f23a6293..729d70d5a 100644 --- a/regamedll/dlls/player.cpp +++ b/regamedll/dlls/player.cpp @@ -10116,7 +10116,7 @@ bool CBasePlayer::IsObservingPlayer(CBasePlayer *pPlayer) void CBasePlayer::UpdateLocation(bool forceUpdate) { - if (!forceUpdate && m_flLastUpdateTime >= gpGlobals->time + 2.0f) + if (!forceUpdate && m_flLastUpdateTime > gpGlobals->time - 2.0f) return; const char *placeName = nullptr;