summaryrefslogtreecommitdiffstats
path: root/source/Mobs/Zombie.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Mobs/Zombie.cpp')
-rw-r--r--source/Mobs/Zombie.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/Mobs/Zombie.cpp b/source/Mobs/Zombie.cpp
index b51931904..b0a429f25 100644
--- a/source/Mobs/Zombie.cpp
+++ b/source/Mobs/Zombie.cpp
@@ -39,8 +39,9 @@ void cZombie::Tick(float a_Dt)
{
cMonster::Tick(a_Dt);
- //TODO Same as in cSkeleton :D
- if (GetWorld()->GetWorldTime() < (12000 + 1000) && GetMetaData() != BURNING) { //if daylight
+ // TODO Same as in cSkeleton :D
+ if ((GetWorld()->GetTimeOfDay() < (12000 + 1000)) && (GetMetaData() != BURNING))
+ {
SetMetaData(BURNING); // BURN, BABY, BURN! >:D
}
}