From 4e5baf3f39c6972fb525b0d4aed58f59de3005bd Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Thu, 24 Aug 2017 10:25:50 +0300 Subject: pass a_Dt and a_Chunk to PostTick,PreTick,Tick,IsControlDesired --- src/Mobs/AggressiveMonster.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Mobs/AggressiveMonster.cpp') diff --git a/src/Mobs/AggressiveMonster.cpp b/src/Mobs/AggressiveMonster.cpp index 7d44e36b9..9d9532573 100644 --- a/src/Mobs/AggressiveMonster.cpp +++ b/src/Mobs/AggressiveMonster.cpp @@ -28,16 +28,16 @@ void cAggressiveMonster::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) { super::Tick(a_Dt, a_Chunk); - cBehaviorChaser * BehaviorChaser = GetBehaviorChaser(); + /* cBehaviorChaser * BehaviorChaser = GetBehaviorChaser(); cBehaviorWanderer * BehaviorWanderer = GetBehaviorWanderer(); for (;;) { m_BehaviorAggressive.Tick(); - /*if (BehaviorChaser->Tick()) + if (BehaviorChaser->Tick()) { break; - }*/ + } if ((BehaviorWanderer != nullptr) && BehaviorWanderer->ActiveTick(a_Dt, a_Chunk)) { break; @@ -47,5 +47,5 @@ void cAggressiveMonster::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) break; } - BehaviorChaser->Tick(); + BehaviorChaser->Tick();*/ } -- cgit v1.2.3