diff options
Diffstat (limited to 'src/Mobs/Zombie.cpp')
-rw-r--r-- | src/Mobs/Zombie.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/Mobs/Zombie.cpp b/src/Mobs/Zombie.cpp index 30225c32d..f96db6942 100644 --- a/src/Mobs/Zombie.cpp +++ b/src/Mobs/Zombie.cpp @@ -14,7 +14,6 @@ cZombie::cZombie(bool a_IsVillagerZombie) : m_IsVillagerZombie(a_IsVillagerZombie), m_IsConverting(false) { - SetBurnsInDaylight(true); } @@ -41,22 +40,3 @@ void cZombie::GetDrops(cItems & a_Drops, cEntity * a_Killer) - -void cZombie::MoveToPosition(const Vector3d & a_Position) -{ - // If the destination is sufficiently skylight challenged AND the skeleton isn't on fire then block the movement - if ( - !IsOnFire() && - (m_World->GetBlockSkyLight((int)floor(a_Position.x), (int)floor(a_Position.y), (int)floor(a_Position.z)) - m_World->GetSkyDarkness() > 8) - ) - { - m_bMovingToDestination = false; - return; - } - - super::MoveToPosition(a_Position); -} - - - - |