From e5b8aadd493b8b5df4ed661f2491de33d634b001 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Wed, 18 Jun 2025 18:57:37 -0300 Subject: finish `crplayer.cc` --- src/crmain.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/crmain.cc') diff --git a/src/crmain.cc b/src/crmain.cc index ddf5393..a98f33e 100644 --- a/src/crmain.cc +++ b/src/crmain.cc @@ -1050,8 +1050,8 @@ void ProcessCreatures(void){ // and most of the time it is redundant because functions will check if // it's NULL before attempting anything. - int FoodRegen = Creature->Skills[SKILL_FED]->Get(); - if(FoodRegen > 0 && (RoundNr % FoodRegen) == 0 && !Creature->IsDead + int FoodInterval = Creature->Skills[SKILL_FED]->Get(); + if(FoodInterval > 0 && (RoundNr % FoodInterval) == 0 && !Creature->IsDead && !IsProtectionZone(Creature->posx, Creature->posy, Creature->posz)){ Creature->Skills[SKILL_HITPOINTS]->Change(1); Creature->Skills[SKILL_MANA]->Change(4); -- cgit v1.2.3