aboutsummaryrefslogtreecommitdiff
path: root/src/crmain.cc
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-06-18 18:57:37 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-06-18 18:57:37 -0300
commite5b8aadd493b8b5df4ed661f2491de33d634b001 (patch)
tree694e90810ca82d621573f8d26f64481f7001d183 /src/crmain.cc
parentb912ba995c2175b00393f95388ae2ec1afd0494b (diff)
downloadgame-e5b8aadd493b8b5df4ed661f2491de33d634b001.tar.gz
game-e5b8aadd493b8b5df4ed661f2491de33d634b001.zip
finish `crplayer.cc`
Diffstat (limited to 'src/crmain.cc')
-rw-r--r--src/crmain.cc4
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);