summaryrefslogtreecommitdiffstats
path: root/src/Mobs
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-08-19 15:53:54 +0200
committerGitHub <noreply@github.com>2016-08-19 15:53:54 +0200
commitc61746a39238ec0b180635d914091d82fe8e8dfc (patch)
tree4bf43680b38b96c1286f5aed5c4dba73f078b857 /src/Mobs
parentRemoved Decoda project files, no longer used. (#3320) (diff)
parentFixed implicit rounding warnings. (diff)
downloadcuberite-c61746a39238ec0b180635d914091d82fe8e8dfc.tar
cuberite-c61746a39238ec0b180635d914091d82fe8e8dfc.tar.gz
cuberite-c61746a39238ec0b180635d914091d82fe8e8dfc.tar.bz2
cuberite-c61746a39238ec0b180635d914091d82fe8e8dfc.tar.lz
cuberite-c61746a39238ec0b180635d914091d82fe8e8dfc.tar.xz
cuberite-c61746a39238ec0b180635d914091d82fe8e8dfc.tar.zst
cuberite-c61746a39238ec0b180635d914091d82fe8e8dfc.zip
Diffstat (limited to 'src/Mobs')
-rw-r--r--src/Mobs/Monster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp
index 3b0fdd36c..98c22e299 100644
--- a/src/Mobs/Monster.cpp
+++ b/src/Mobs/Monster.cpp
@@ -1213,7 +1213,7 @@ bool cMonster::WouldBurnAt(Vector3d a_Location, cChunk & a_Chunk)
GetWorld()->IsWeatherSunnyAt(POSX_TOINT, POSZ_TOINT) // Not raining
)
{
- int MobHeight = static_cast<int>(a_Location.y) + round(GetHeight()) - 1; // The height of the mob head
+ int MobHeight = FloorC(a_Location.y + GetHeight()) - 1; // The block Y coord of the mob's head
if (MobHeight >= cChunkDef::Height)
{
return true;