From 4afd0d4f49460fd8517a8c71bbb6034bc0cd8047 Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Tue, 22 Aug 2017 17:03:54 +0300 Subject: d --- src/Mobs/Monster.cpp | 9 +++++++++ src/Mobs/Monster.h | 2 +- src/Mobs/Wolf.cpp | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) (limited to 'src/Mobs') diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp index beb743818..d02ea1809 100644 --- a/src/Mobs/Monster.cpp +++ b/src/Mobs/Monster.cpp @@ -1115,6 +1115,15 @@ cPawn * cMonster::GetTarget() +bool cMonster::IsPathFinderActivated() const +{ + return m_PathfinderActivated; +} + + + + + cBehaviorAggressive * cMonster::GetBehaviorAggressive() { return nullptr; diff --git a/src/Mobs/Monster.h b/src/Mobs/Monster.h index 309037e3e..a9669ced9 100644 --- a/src/Mobs/Monster.h +++ b/src/Mobs/Monster.h @@ -220,7 +220,7 @@ public: /** Returns if this mob last target was a player to avoid destruction on player quit */ bool WasLastTargetAPlayer() const { return m_WasLastTargetAPlayer; } - bool IsPathFinderActivated() const { return m_p + bool IsPathFinderActivated() const; // Behavior getters virtual cBehaviorAggressive * GetBehaviorAggressive(); virtual cBehaviorBreeder * GetBehaviorBreeder(); diff --git a/src/Mobs/Wolf.cpp b/src/Mobs/Wolf.cpp index 520de483d..cc0ee02a4 100644 --- a/src/Mobs/Wolf.cpp +++ b/src/Mobs/Wolf.cpp @@ -326,7 +326,7 @@ void cWolf::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) MoveToPosition(GetTarget()->GetPosition()); if (TargetIsInRange()) { - Attack(a_Dt); + // Attack(a_Dt); mobTodo } } } -- cgit v1.2.3