1
0

Fixed a bunch of MSVS warnings

* Possibly also fixed some bugs with pathfinding and TNT, though
unlikely
This commit is contained in:
Tiger Wang
2014-02-04 23:07:22 +00:00
parent 9eeeb91fa6
commit 630507fd5b
6 changed files with 8 additions and 7 deletions

View File

@@ -264,7 +264,7 @@ void cMonster::Tick(float a_Dt, cChunk & a_Chunk)
{
m_Destination.y = FindFirstNonAirBlockPosition(m_Destination.x, m_Destination.z);
if (DoesPosYRequireJump(m_Destination.y))
if (DoesPosYRequireJump((int)floor(m_Destination.y)))
{
m_bOnGround = false;
AddPosY(1.5); // Jump!!