diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-06-18 18:57:37 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-06-18 18:57:37 -0300 |
| commit | e5b8aadd493b8b5df4ed661f2491de33d634b001 (patch) | |
| tree | 694e90810ca82d621573f8d26f64481f7001d183 /src/crmain.cc | |
| parent | b912ba995c2175b00393f95388ae2ec1afd0494b (diff) | |
| download | game-e5b8aadd493b8b5df4ed661f2491de33d634b001.tar.gz game-e5b8aadd493b8b5df4ed661f2491de33d634b001.zip | |
finish `crplayer.cc`
Diffstat (limited to 'src/crmain.cc')
| -rw-r--r-- | src/crmain.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
