From 0b288fefcccc8c228044ae8319f053f5408264a1 Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Thu, 31 Aug 2017 13:53:10 +0300 Subject: Pathfinder DontCare now a member variable --- src/Mobs/Behaviors/BehaviorDayLightBurner.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/Mobs/Behaviors/BehaviorDayLightBurner.cpp') diff --git a/src/Mobs/Behaviors/BehaviorDayLightBurner.cpp b/src/Mobs/Behaviors/BehaviorDayLightBurner.cpp index ab234e56f..0b0faed08 100644 --- a/src/Mobs/Behaviors/BehaviorDayLightBurner.cpp +++ b/src/Mobs/Behaviors/BehaviorDayLightBurner.cpp @@ -23,9 +23,6 @@ void cBehaviorDayLightBurner::AttachToMonster(cMonster & a_Parent) void cBehaviorDayLightBurner::PostTick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) { - // mobTodo WouldBurn - bool WouldBurn = false; // TEMP - int RelY = static_cast(m_Parent->GetPosY()); if ((RelY < 0) || (RelY >= cChunkDef::Height)) { @@ -38,7 +35,7 @@ void cBehaviorDayLightBurner::PostTick(std::chrono::milliseconds a_Dt, cChunk & return; } - if (!m_Parent->IsOnFire() && WouldBurn) + if (!m_Parent->IsOnFire() && WouldBurnAt(m_Parent->GetPosition(), a_Chunk)) { // Burn for 100 ticks, then decide again m_Parent->StartBurning(100); -- cgit v1.2.3