summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-11 23:09:56 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-11 23:09:56 +0100
commit06239c8336a340459a62b45b6d633a55058e4677 (patch)
tree18228a83e863488209da2f9cd18df9352cc1a29d /src/Mobs/Monster.cpp
parentFixed #612 (diff)
downloadcuberite-06239c8336a340459a62b45b6d633a55058e4677.tar
cuberite-06239c8336a340459a62b45b6d633a55058e4677.tar.gz
cuberite-06239c8336a340459a62b45b6d633a55058e4677.tar.bz2
cuberite-06239c8336a340459a62b45b6d633a55058e4677.tar.lz
cuberite-06239c8336a340459a62b45b6d633a55058e4677.tar.xz
cuberite-06239c8336a340459a62b45b6d633a55058e4677.tar.zst
cuberite-06239c8336a340459a62b45b6d633a55058e4677.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Monster.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp
index ad3a87725..9817901c9 100644
--- a/src/Mobs/Monster.cpp
+++ b/src/Mobs/Monster.cpp
@@ -311,9 +311,6 @@ void cMonster::Tick(float a_Dt, cChunk & a_Chunk)
}
}
- if (ReachedFinalDestination() && (m_Target != NULL))
- Attack(a_Dt);
-
SetPitchAndYawFromDestination();
HandleFalling();
@@ -657,17 +654,6 @@ void cMonster::InStateEscaping(float a_Dt)
-// Do attack here
-// a_Dt is passed so we can set attack rate
-void cMonster::Attack(float a_Dt)
-{
- m_AttackInterval += a_Dt * m_AttackRate;
-}
-
-
-
-
-
void cMonster::GetMonsterConfig(const AString & a_Name)
{
cRoot::Get()->GetMonsterConfig()->AssignAttributes(this, a_Name);