Skip to content

Commit

Permalink
fix: add REGAMEDLL_FIXES
Browse files Browse the repository at this point in the history
  • Loading branch information
golukon committed Dec 28, 2024
1 parent 655fdaf commit b72ade6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions regamedll/dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10116,7 +10116,11 @@ bool CBasePlayer::IsObservingPlayer(CBasePlayer *pPlayer)

void CBasePlayer::UpdateLocation(bool forceUpdate)
{
#ifdef REGAMEDLL_FIXES
if (!forceUpdate && m_flLastUpdateTime > gpGlobals->time - 2.0f)
#else
if (!forceUpdate && m_flLastUpdateTime >= gpGlobals->time + 2.0f)
#endif
return;

const char *placeName = nullptr;
Expand Down

0 comments on commit b72ade6

Please sign in to comment.