From f280c36f9d2e8ca0aabf5395d50f2982d39806a5 Mon Sep 17 00:00:00 2001 From: Alexander Harkness Date: Sat, 18 Oct 2014 16:12:12 +0100 Subject: Simpler code. --- src/BlockEntities/FurnaceEntity.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/BlockEntities/FurnaceEntity.cpp b/src/BlockEntities/FurnaceEntity.cpp index 38c251d2c..898d348de 100644 --- a/src/BlockEntities/FurnaceEntity.cpp +++ b/src/BlockEntities/FurnaceEntity.cpp @@ -96,9 +96,8 @@ bool cFurnaceEntity::Tick(float a_Dt, cChunk & a_Chunk) if (m_FuelBurnTime <= 0) { - // Cooked time decreases twice as fast when ran out of fuel - m_TimeCooked -= 2; - m_TimeCooked = std::max(m_TimeCooked, 0); + // If a furnace is out of fuel, the progress bar reverses at twice the speed of cooking. + m_TimeCooked = std::max((m_TimeCooked - 2), 0); // Reset progressbars, block type, and bail out a_Chunk.FastSetBlock(GetRelX(), m_PosY, GetRelZ(), E_BLOCK_FURNACE, m_BlockMeta); -- cgit v1.2.3