From a9579c4f0615a0e87beab91aaf75fd6ca468c7cc Mon Sep 17 00:00:00 2001 From: Gargaj Date: Wed, 4 Nov 2015 18:00:29 +0100 Subject: Fix being set on fire while directly being under lava Right now you will be on fire if there is a block of lava right above you, even if it doesn't pour down. --- src/Entities/Entity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp index 68e2cb1df..ee806c4b3 100644 --- a/src/Entities/Entity.cpp +++ b/src/Entities/Entity.cpp @@ -1119,7 +1119,7 @@ void cEntity::TickBurning(cChunk & a_Chunk) int MinRelZ = FloorC(GetPosZ() - m_Width / 2) - a_Chunk.GetPosZ() * cChunkDef::Width; int MaxRelZ = FloorC(GetPosZ() + m_Width / 2) - a_Chunk.GetPosZ() * cChunkDef::Width; int MinY = Clamp(POSY_TOINT, 0, cChunkDef::Height - 1); - int MaxY = Clamp(CeilC(GetPosY() + m_Height), 0, cChunkDef::Height - 1); + int MaxY = Clamp(FloorC(GetPosY() + m_Height), 0, cChunkDef::Height - 1); bool HasWater = false; bool HasLava = false; bool HasFire = false; -- cgit v1.2.3