Skip to content

Commit

Permalink
CInfClassCharacter::OnCharacterInInfectionZone: Fix missing sound on …
Browse files Browse the repository at this point in the history
…HP restored
  • Loading branch information
Kaffeine committed Dec 15, 2023
1 parent 8ed0c0f commit 0a00245
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/game/server/infclass/entities/infccharacter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,10 @@ void CInfClassCharacter::OnCharacterInInfectionZone()
{
m_HealTick = Server()->Tick();
int BonusArmor = GameController()->InfectedBonusArmor();
if(m_Armor < BonusArmor)
if(m_Health < 10 || m_Armor < BonusArmor)
{
Heal(1);
}
else
{
IncreaseHealth(1);
}
if(m_InfZoneTick < 0)
{
m_InfZoneTick = Server()->Tick(); // Save Tick when zombie enters infection zone
Expand Down

0 comments on commit 0a00245

Please sign in to comment.