1
0

Fixed implicit rounding warnings.

This commit is contained in:
Mattes D
2016-08-19 14:09:10 +02:00
parent 891c57bc02
commit 7549f468b3
2 changed files with 9 additions and 6 deletions

View File

@@ -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;