diff options
author | Mattes D <github@xoft.cz> | 2014-02-15 15:06:23 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-02-15 15:06:23 +0100 |
commit | 48eafee823cb979ded833b5311c0f5c37a8ca0f2 (patch) | |
tree | fad70a53bd337fa152f661e32422da5b9699096e /src/Mobs/Monster.cpp | |
parent | Merge pull request #677 from mc-server/BroadcastParticleEffect (diff) | |
parent | Fixed typographical error (diff) | |
download | cuberite-48eafee823cb979ded833b5311c0f5c37a8ca0f2.tar cuberite-48eafee823cb979ded833b5311c0f5c37a8ca0f2.tar.gz cuberite-48eafee823cb979ded833b5311c0f5c37a8ca0f2.tar.bz2 cuberite-48eafee823cb979ded833b5311c0f5c37a8ca0f2.tar.lz cuberite-48eafee823cb979ded833b5311c0f5c37a8ca0f2.tar.xz cuberite-48eafee823cb979ded833b5311c0f5c37a8ca0f2.tar.zst cuberite-48eafee823cb979ded833b5311c0f5c37a8ca0f2.zip |
Diffstat (limited to 'src/Mobs/Monster.cpp')
-rw-r--r-- | src/Mobs/Monster.cpp | 14 |
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); |