summaryrefslogtreecommitdiffstats
path: root/source/Mobs/Skeleton.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-05 22:40:08 +0200
committermadmaxoft <github@xoft.cz>2013-09-05 22:40:08 +0200
commitff762a7ece6400eaeb5e21f3fea7cad00786a8d9 (patch)
treed8c5be799168cd1c50a170e549db2b3812c7b9f6 /source/Mobs/Skeleton.cpp
parentMerge branch 'master' of git://github.com/tigerw/MCServer into tigerw-master (diff)
downloadcuberite-ff762a7ece6400eaeb5e21f3fea7cad00786a8d9.tar
cuberite-ff762a7ece6400eaeb5e21f3fea7cad00786a8d9.tar.gz
cuberite-ff762a7ece6400eaeb5e21f3fea7cad00786a8d9.tar.bz2
cuberite-ff762a7ece6400eaeb5e21f3fea7cad00786a8d9.tar.lz
cuberite-ff762a7ece6400eaeb5e21f3fea7cad00786a8d9.tar.xz
cuberite-ff762a7ece6400eaeb5e21f3fea7cad00786a8d9.tar.zst
cuberite-ff762a7ece6400eaeb5e21f3fea7cad00786a8d9.zip
Diffstat (limited to 'source/Mobs/Skeleton.cpp')
-rw-r--r--source/Mobs/Skeleton.cpp19
1 files changed, 1 insertions, 18 deletions
diff --git a/source/Mobs/Skeleton.cpp b/source/Mobs/Skeleton.cpp
index ad4037db9..10dad4065 100644
--- a/source/Mobs/Skeleton.cpp
+++ b/source/Mobs/Skeleton.cpp
@@ -11,24 +11,7 @@
cSkeleton::cSkeleton(void) :
super("Skeleton", 51, "mob.skeleton.hurt", "mob.skeleton.death", 0.6, 1.8)
{
-}
-
-
-
-
-
-void cSkeleton::Tick(float a_Dt, cChunk & a_Chunk)
-{
- cMonster::Tick(a_Dt, a_Chunk);
-
- if ((GetWorld()->GetBlockSkyLight(GetPosX(), GetPosY(), GetPosZ()) == 15) && (GetWorld()->GetBlock(GetPosX(), GetPosY(), GetPosZ()) != E_BLOCK_SOULSAND))
- {
- if ((GetWorld()->GetTimeOfDay() < (12000 + 1000)) && !IsOnFire())
- {
- // Burn for 100 ticks, then decide again
- StartBurning(100);
- }
- }
+ SetBurnsInDaylight(true);
}