Skip to content

Commit

Permalink
Merge pull request rehlds#4 from s1lentq/master
Browse files Browse the repository at this point in the history
uptodate
  • Loading branch information
SergeyShorokhov authored Jul 29, 2019
2 parents feae856 + 75bdc26 commit 4d8a1b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion regamedll/dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4218,7 +4218,11 @@ void EXT_FUNC CBasePlayer::__API_HOOK(PreThink)()
m_flVelocityModifier = 1;
}

if (m_flIdleCheckTime <= (double)gpGlobals->time || m_flIdleCheckTime == 0.0f)
if (
#ifdef REGAMEDLL_FIXES
IsAlive() &&
#endif
m_flIdleCheckTime <= (double)gpGlobals->time || m_flIdleCheckTime == 0.0f)
{
// check every 5 seconds
m_flIdleCheckTime = gpGlobals->time + 5.0;
Expand Down

0 comments on commit 4d8a1b9

Please sign in to comment.