From 7549f468b396325be0094495a80cb5f4ec3efdf0 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Fri, 19 Aug 2016 14:09:10 +0200 Subject: Fixed implicit rounding warnings. --- src/Mobs/Monster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Mobs') 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(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; -- cgit v1.2.3