diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-01-22 19:53:34 +0100 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-01-22 19:53:34 +0100 |
commit | 30b95fcc4ec8465a8fb076fbb88ac6835a832a19 (patch) | |
tree | 44fa8a18db08ae8bb34d43efba9a800f47d135cd /src/Mobs/AggressiveMonster.cpp | |
parent | Merge pull request #2901 from birkett/servicefix (diff) | |
parent | Spiders now friendly at daylight, new cChunk functions (diff) | |
download | cuberite-30b95fcc4ec8465a8fb076fbb88ac6835a832a19.tar cuberite-30b95fcc4ec8465a8fb076fbb88ac6835a832a19.tar.gz cuberite-30b95fcc4ec8465a8fb076fbb88ac6835a832a19.tar.bz2 cuberite-30b95fcc4ec8465a8fb076fbb88ac6835a832a19.tar.lz cuberite-30b95fcc4ec8465a8fb076fbb88ac6835a832a19.tar.xz cuberite-30b95fcc4ec8465a8fb076fbb88ac6835a832a19.tar.zst cuberite-30b95fcc4ec8465a8fb076fbb88ac6835a832a19.zip |
Diffstat (limited to 'src/Mobs/AggressiveMonster.cpp')
-rw-r--r-- | src/Mobs/AggressiveMonster.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Mobs/AggressiveMonster.cpp b/src/Mobs/AggressiveMonster.cpp index faee4a049..512bfb4a1 100644 --- a/src/Mobs/AggressiveMonster.cpp +++ b/src/Mobs/AggressiveMonster.cpp @@ -36,11 +36,11 @@ void cAggressiveMonster::InStateChasing(std::chrono::milliseconds a_Dt, cChunk & -void cAggressiveMonster::EventSeePlayer(cEntity * a_Entity) +void cAggressiveMonster::EventSeePlayer(cEntity * a_Entity, cChunk & a_Chunk) { if (!static_cast<cPlayer *>(a_Entity)->IsGameModeCreative()) { - super::EventSeePlayer(a_Entity); + super::EventSeePlayer(a_Entity, a_Chunk); m_EMState = CHASING; } } @@ -59,7 +59,7 @@ void cAggressiveMonster::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) } else { - CheckEventSeePlayer(); + CheckEventSeePlayer(a_Chunk); } if (m_Target == nullptr) |