Skip to content

Commit

Permalink
fix: calculate fun UpdateLocation not so often
Browse files Browse the repository at this point in the history
  • Loading branch information
golukon committed Dec 27, 2024
1 parent f63ad67 commit 655fdaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regamedll/dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 655fdaf

Please sign in to comment.