diff options
author | Mattes D <github@xoft.cz> | 2015-11-04 22:49:59 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-11-04 22:49:59 +0100 |
commit | 01821237e80eed9a81fccb881298c08023fd9dbc (patch) | |
tree | 176b49aa42f14a086b2889677195594b65f90e2a /src/Entities/Entity.cpp | |
parent | Merge pull request #2597 from cuberite/faviconChange (diff) | |
parent | Fix being set on fire while directly being under lava (diff) | |
download | cuberite-01821237e80eed9a81fccb881298c08023fd9dbc.tar cuberite-01821237e80eed9a81fccb881298c08023fd9dbc.tar.gz cuberite-01821237e80eed9a81fccb881298c08023fd9dbc.tar.bz2 cuberite-01821237e80eed9a81fccb881298c08023fd9dbc.tar.lz cuberite-01821237e80eed9a81fccb881298c08023fd9dbc.tar.xz cuberite-01821237e80eed9a81fccb881298c08023fd9dbc.tar.zst cuberite-01821237e80eed9a81fccb881298c08023fd9dbc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Entity.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |