diff options
author | madmaxoft <github@xoft.cz> | 2013-09-05 22:40:08 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-09-05 22:40:08 +0200 |
commit | ff762a7ece6400eaeb5e21f3fea7cad00786a8d9 (patch) | |
tree | d8c5be799168cd1c50a170e549db2b3812c7b9f6 /source/Mobs/Zombie.cpp | |
parent | Merge branch 'master' of git://github.com/tigerw/MCServer into tigerw-master (diff) | |
download | cuberite-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/Zombie.cpp')
-rw-r--r-- | source/Mobs/Zombie.cpp | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/source/Mobs/Zombie.cpp b/source/Mobs/Zombie.cpp index f3adf1283..9b238baef 100644 --- a/source/Mobs/Zombie.cpp +++ b/source/Mobs/Zombie.cpp @@ -8,28 +8,10 @@ -// They're eating your brains! - cZombie::cZombie(void) : super("Zombie", 54, "mob.zombie.hurt", "mob.zombie.death", 0.6, 1.8) { -} - - - - - -void cZombie::Tick(float a_Dt, cChunk & a_Chunk) -{ - super::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); } |