diff options
author | Safwat Halaby <SafwatHalaby@users.noreply.github.com> | 2015-12-25 14:03:39 +0100 |
---|---|---|
committer | Safwat Halaby <SafwatHalaby@users.noreply.github.com> | 2015-12-25 14:03:39 +0100 |
commit | 6a22605fae80becb12318785389d07974a35cbbb (patch) | |
tree | fe06cfac5e89b12f1e8b8492d37dc10468c81429 /src/Mobs/Monster.h | |
parent | Merge pull request #2815 from SafwatHalaby/world (diff) | |
parent | PF - "Special blocks" handling (diff) | |
download | cuberite-6a22605fae80becb12318785389d07974a35cbbb.tar cuberite-6a22605fae80becb12318785389d07974a35cbbb.tar.gz cuberite-6a22605fae80becb12318785389d07974a35cbbb.tar.bz2 cuberite-6a22605fae80becb12318785389d07974a35cbbb.tar.lz cuberite-6a22605fae80becb12318785389d07974a35cbbb.tar.xz cuberite-6a22605fae80becb12318785389d07974a35cbbb.tar.zst cuberite-6a22605fae80becb12318785389d07974a35cbbb.zip |
Diffstat (limited to 'src/Mobs/Monster.h')
-rw-r--r-- | src/Mobs/Monster.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Mobs/Monster.h b/src/Mobs/Monster.h index 98b67f343..cc830a058 100644 --- a/src/Mobs/Monster.h +++ b/src/Mobs/Monster.h @@ -79,9 +79,9 @@ public: virtual void EventLosePlayer(void); virtual void CheckEventLostPlayer(void); - virtual void InStateIdle (std::chrono::milliseconds a_Dt); - virtual void InStateChasing (std::chrono::milliseconds a_Dt); - virtual void InStateEscaping(std::chrono::milliseconds a_Dt); + virtual void InStateIdle (std::chrono::milliseconds a_Dt, cChunk & a_Chunk); + virtual void InStateChasing (std::chrono::milliseconds a_Dt, cChunk & a_Chunk); + virtual void InStateEscaping(std::chrono::milliseconds a_Dt, cChunk & a_Chunk); int GetAttackRate() { return static_cast<int>(m_AttackRate); } void SetAttackRate(float a_AttackRate) { m_AttackRate = a_AttackRate; } @@ -193,7 +193,7 @@ protected: /** Returns if a monster can reach a given height by jumping. */ inline bool DoesPosYRequireJump(int a_PosY) { - return ((a_PosY > POSY_TOINT) && (a_PosY == POSY_TOINT + 1)); + return ((a_PosY > POSY_TOINT)); } /** Move in a straight line to the next waypoint in the path, will jump if needed. */ |