summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-04-17 19:50:25 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-04-17 19:50:25 +0200
commitbdea8706d8050ba3ea00b580bba795bc468cfdbd (patch)
tree27ec86d16edadcb0811d609c22b3d6e9168491e8 /src/Entities/Entity.cpp
parentAdded Prefab initializers to SELFTEST code. (diff)
downloadcuberite-bdea8706d8050ba3ea00b580bba795bc468cfdbd.tar
cuberite-bdea8706d8050ba3ea00b580bba795bc468cfdbd.tar.gz
cuberite-bdea8706d8050ba3ea00b580bba795bc468cfdbd.tar.bz2
cuberite-bdea8706d8050ba3ea00b580bba795bc468cfdbd.tar.lz
cuberite-bdea8706d8050ba3ea00b580bba795bc468cfdbd.tar.xz
cuberite-bdea8706d8050ba3ea00b580bba795bc468cfdbd.tar.zst
cuberite-bdea8706d8050ba3ea00b580bba795bc468cfdbd.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 8ef45f1a5..7d9039479 100644
--- a/src/Entities/Entity.cpp
+++ b/src/Entities/Entity.cpp
@@ -806,7 +806,7 @@ void cEntity::TickBurning(cChunk & a_Chunk)
int MaxRelX = (int)floor(GetPosX() + m_Width / 2) - a_Chunk.GetPosX() * cChunkDef::Width;
int MinRelZ = (int)floor(GetPosZ() - m_Width / 2) - a_Chunk.GetPosZ() * cChunkDef::Width;
int MaxRelZ = (int)floor(GetPosZ() + m_Width / 2) - a_Chunk.GetPosZ() * cChunkDef::Width;
- int MinY = std::max(0, std::min(cChunkDef::Height - 1, (int)floor(GetPosY())));
+ int MinY = std::max(0, std::min(cChunkDef::Height - 1, POSY_TOINT));
int MaxY = std::max(0, std::min(cChunkDef::Height - 1, (int)ceil (GetPosY() + m_Height)));
bool HasWater = false;
bool HasLava = false;