summaryrefslogtreecommitdiffstats
path: root/src/Mobs
diff options
context:
space:
mode:
authorandrew <xdotftw@gmail.com>2014-05-21 09:59:14 +0200
committerandrew <xdotftw@gmail.com>2014-05-21 09:59:14 +0200
commit7aeb8ce9936e8ebd203d67100de8635d391bd8a1 (patch)
tree96463d7a34231439a088db38305aad1ef4f26087 /src/Mobs
parentCleaned up cPlayer::UpdateMovementStats; Wither achievements (diff)
downloadcuberite-7aeb8ce9936e8ebd203d67100de8635d391bd8a1.tar
cuberite-7aeb8ce9936e8ebd203d67100de8635d391bd8a1.tar.gz
cuberite-7aeb8ce9936e8ebd203d67100de8635d391bd8a1.tar.bz2
cuberite-7aeb8ce9936e8ebd203d67100de8635d391bd8a1.tar.lz
cuberite-7aeb8ce9936e8ebd203d67100de8635d391bd8a1.tar.xz
cuberite-7aeb8ce9936e8ebd203d67100de8635d391bd8a1.tar.zst
cuberite-7aeb8ce9936e8ebd203d67100de8635d391bd8a1.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Wither.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Mobs/Wither.cpp b/src/Mobs/Wither.cpp
index deb2cf34e..170f4fdc0 100644
--- a/src/Mobs/Wither.cpp
+++ b/src/Mobs/Wither.cpp
@@ -105,7 +105,7 @@ void cWither::GetDrops(cItems & a_Drops, cEntity * a_Killer)
void cWither::KilledBy(cEntity * a_Killer)
{
- UNUSED(a_Killer);
+ super::KilledBy(a_Killer);
class cPlayerCallback : public cPlayerListCallback
{
@@ -113,6 +113,7 @@ void cWither::KilledBy(cEntity * a_Killer)
virtual bool Item(cPlayer * a_Player)
{
+ // TODO 2014-05-21 xdot: Vanilla minecraft uses an AABB check instead of a radius one
double Dist = (a_Player->GetPosition() - m_Pos).Length();
if (Dist < 50.0)
{