From e0d5919b75799a8907ec3be763792301c71ec0fc Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Fri, 25 Aug 2017 11:24:59 +0300 Subject: Coward mobs run twice as fast --- src/Mobs/Behaviors/BehaviorCoward.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/Mobs') diff --git a/src/Mobs/Behaviors/BehaviorCoward.cpp b/src/Mobs/Behaviors/BehaviorCoward.cpp index c3afec67a..852a12e6c 100644 --- a/src/Mobs/Behaviors/BehaviorCoward.cpp +++ b/src/Mobs/Behaviors/BehaviorCoward.cpp @@ -41,19 +41,16 @@ bool cBehaviorCoward::ControlStarting(std::chrono::milliseconds a_Dt, cChunk & a { UNUSED(a_Dt); UNUSED(a_Chunk); - m_Parent->SetSpeed(m_Parent->GetSpeed() * 2); + m_Parent->SetRelativeWalkSpeed(m_Parent->GetRelativeWalkSpeed() * 2); return true; } - - - bool cBehaviorCoward::ControlEnding(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) { UNUSED(a_Dt); UNUSED(a_Chunk); - m_Parent->SetSpeed(m_Parent->GetSpeed() / 2); + m_Parent->SetRelativeWalkSpeed(m_Parent->GetRelativeWalkSpeed() / 2); return true; } -- cgit v1.2.3