diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-08-31 12:53:10 +0200 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-08-31 12:53:10 +0200 |
commit | 0b288fefcccc8c228044ae8319f053f5408264a1 (patch) | |
tree | e0d1bf0accec2149d5c1ece32a7b26adbdb7ac58 /src/Mobs/Behaviors/BehaviorDayLightBurner.cpp | |
parent | Removed BehaviorStriker, and some doc (diff) | |
download | cuberite-0b288fefcccc8c228044ae8319f053f5408264a1.tar cuberite-0b288fefcccc8c228044ae8319f053f5408264a1.tar.gz cuberite-0b288fefcccc8c228044ae8319f053f5408264a1.tar.bz2 cuberite-0b288fefcccc8c228044ae8319f053f5408264a1.tar.lz cuberite-0b288fefcccc8c228044ae8319f053f5408264a1.tar.xz cuberite-0b288fefcccc8c228044ae8319f053f5408264a1.tar.zst cuberite-0b288fefcccc8c228044ae8319f053f5408264a1.zip |
Diffstat (limited to 'src/Mobs/Behaviors/BehaviorDayLightBurner.cpp')
-rw-r--r-- | src/Mobs/Behaviors/BehaviorDayLightBurner.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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<int>(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); |