summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.cpp
diff options
context:
space:
mode:
authorGargaj <gargaj@conspiracy.hu>2015-11-04 18:00:29 +0100
committerGargaj <gargaj@conspiracy.hu>2015-11-04 18:00:29 +0100
commita9579c4f0615a0e87beab91aaf75fd6ca468c7cc (patch)
tree176b49aa42f14a086b2889677195594b65f90e2a /src/Entities/Entity.cpp
parentMerge pull request #2597 from cuberite/faviconChange (diff)
downloadcuberite-a9579c4f0615a0e87beab91aaf75fd6ca468c7cc.tar
cuberite-a9579c4f0615a0e87beab91aaf75fd6ca468c7cc.tar.gz
cuberite-a9579c4f0615a0e87beab91aaf75fd6ca468c7cc.tar.bz2
cuberite-a9579c4f0615a0e87beab91aaf75fd6ca468c7cc.tar.lz
cuberite-a9579c4f0615a0e87beab91aaf75fd6ca468c7cc.tar.xz
cuberite-a9579c4f0615a0e87beab91aaf75fd6ca468c7cc.tar.zst
cuberite-a9579c4f0615a0e87beab91aaf75fd6ca468c7cc.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Entity.cpp2
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;