1
0

Fixed a couple more warnings.

This commit is contained in:
archshift
2014-04-25 17:15:12 -07:00
parent 2c0bb7b717
commit 73edd2b961
2 changed files with 17 additions and 21 deletions

View File

@@ -87,7 +87,9 @@ void cFallingBlock::Tick(float a_Dt, cChunk & a_Chunk)
AddSpeedY(MilliDt * -9.8f);
AddPosition(GetSpeed() * MilliDt);
if ((GetSpeedX() != 0) || (GetSpeedZ() != 0))
//If not static (One billionth precision) broadcast movement.
float epsilon = 0.000000001;
if ((fabs(GetSpeedX()) > epsilon) || (fabs(GetSpeedZ()) > epsilon))
{
BroadcastMovementUpdate();
}