summaryrefslogtreecommitdiffstats
path: root/src/Mobs/AggressiveMonster.cpp
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2016-01-17 15:09:25 +0100
committerLogicParrot <LogicParrot@users.noreply.github.com>2016-01-21 07:21:29 +0100
commitd344e574de0f2ac3786f05db0167c1e71e135673 (patch)
tree62915feebc023c51a43711c46a4cc5d8d05b0005 /src/Mobs/AggressiveMonster.cpp
parentMerge pull request #2884 from LogicParrot/sort (diff)
downloadcuberite-d344e574de0f2ac3786f05db0167c1e71e135673.tar
cuberite-d344e574de0f2ac3786f05db0167c1e71e135673.tar.gz
cuberite-d344e574de0f2ac3786f05db0167c1e71e135673.tar.bz2
cuberite-d344e574de0f2ac3786f05db0167c1e71e135673.tar.lz
cuberite-d344e574de0f2ac3786f05db0167c1e71e135673.tar.xz
cuberite-d344e574de0f2ac3786f05db0167c1e71e135673.tar.zst
cuberite-d344e574de0f2ac3786f05db0167c1e71e135673.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/AggressiveMonster.cpp6
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)