Fixed a MSVC warning.
This commit is contained in:
parent
709015369d
commit
dffd38e53b
@ -88,7 +88,7 @@ void cFallingBlock::Tick(float a_Dt, cChunk & a_Chunk)
|
|||||||
AddPosition(GetSpeed() * MilliDt);
|
AddPosition(GetSpeed() * MilliDt);
|
||||||
|
|
||||||
// If not static (One billionth precision) broadcast movement.
|
// If not static (One billionth precision) broadcast movement.
|
||||||
static const float epsilon = 0.000000001;
|
static const float epsilon = 0.000000001f;
|
||||||
if ((fabs(GetSpeedX()) > epsilon) || (fabs(GetSpeedZ()) > epsilon))
|
if ((fabs(GetSpeedX()) > epsilon) || (fabs(GetSpeedZ()) > epsilon))
|
||||||
{
|
{
|
||||||
BroadcastMovementUpdate();
|
BroadcastMovementUpdate();
|
||||||
|
Loading…
Reference in New Issue
Block a user