summaryrefslogtreecommitdiffstats
path: root/source/Mobs/Skeleton.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/Mobs/Skeleton.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Mobs/Skeleton.cpp b/source/Mobs/Skeleton.cpp
index 785584fcd..b2b0c325d 100644
--- a/source/Mobs/Skeleton.cpp
+++ b/source/Mobs/Skeleton.cpp
@@ -16,13 +16,13 @@ cSkeleton::cSkeleton(void) :
-void cSkeleton::Tick(float a_Dt, MTRand & a_TickRandom)
+void cSkeleton::Tick(float a_Dt, cChunk & a_Chunk)
{
- cMonster::Tick(a_Dt, a_TickRandom);
+ cMonster::Tick(a_Dt, a_Chunk);
// TODO Outsource
// TODO should do SkyLight check, mobs in the dark donīt burn
- if ((GetWorld()->GetTimeOfDay() < (12000 + 1000)) && (GetMetaData() != BURNING))
+ if ((GetWorld()->GetTimeOfDay() < (12000 + 1000)) && !IsBurning())
{
SetMetaData(BURNING); // BURN, BABY, BURN! >:D
}