aboutsummaryrefslogtreecommitdiff
path: root/src/crmain.cc
diff options
context:
space:
mode:
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);