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/Monster.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/Monster.cpp')
-rw-r--r-- | src/Mobs/Monster.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp index a24df6bc2..4a543e400 100644 --- a/src/Mobs/Monster.cpp +++ b/src/Mobs/Monster.cpp @@ -560,14 +560,14 @@ void cMonster::OnRightClicked(cPlayer & a_Player) // Checks to see if EventSeePlayer should be fired // monster sez: Do I see the player -void cMonster::CheckEventSeePlayer(void) +void cMonster::CheckEventSeePlayer(cChunk & a_Chunk) { // TODO: Rewrite this to use cWorld's DoWithPlayers() cPlayer * Closest = m_World->FindClosestPlayer(GetPosition(), static_cast<float>(m_SightDistance), false); if (Closest != nullptr) { - EventSeePlayer(Closest); + EventSeePlayer(Closest, a_Chunk); } } @@ -596,7 +596,7 @@ void cMonster::CheckEventLostPlayer(void) // What to do if player is seen // default to change state to chasing -void cMonster::EventSeePlayer(cEntity * a_SeenPlayer) +void cMonster::EventSeePlayer(cEntity * a_SeenPlayer, cChunk & a_Chunk) { m_Target = a_SeenPlayer; } |