dont update text when dead

This commit is contained in:
Pinsplash 2024-04-20 02:57:10 -05:00
parent e8f32f2042
commit 5851f9878c

View File

@ -1367,6 +1367,7 @@ void CHL2_Player::PreThink(void)
g_flNextEffectRem -= gpGlobals->interval_per_tick / flTimeScale;
if (chaos.GetBool())
DoChaosHUDBar();
DoChaosHUDText();
}
bool bResetMaintainTimer = false;
for (int i = 0; g_ChaosEffects.Size() >= i + 1; i++)
@ -1387,7 +1388,6 @@ void CHL2_Player::PreThink(void)
StopGivenEffect(g_ChaosEffects[i]->m_nID);
}
}
DoChaosHUDText();
if (bResetMaintainTimer)
{
MaintainEvils();