mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-06-06 19:02:07 +03:00
fix: calculate UpdateLocation fun not so often (#1040)
This commit is contained in:
parent
a7395b054d
commit
756deb1ea9
@ -10116,7 +10116,11 @@ bool CBasePlayer::IsObservingPlayer(CBasePlayer *pPlayer)
|
|||||||
|
|
||||||
void CBasePlayer::UpdateLocation(bool forceUpdate)
|
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)
|
if (!forceUpdate && m_flLastUpdateTime >= gpGlobals->time + 2.0f)
|
||||||
|
#endif
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const char *placeName = nullptr;
|
const char *placeName = nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user