1
0

Fixed type-conversion warnings.

This commit is contained in:
Mattes D
2015-01-18 11:02:17 +01:00
parent 6758c1d2a1
commit e211aafaa4
4 changed files with 8 additions and 8 deletions

View File

@@ -28,7 +28,7 @@ void cFireworkEntity::HandlePhysics(std::chrono::milliseconds a_Dt, cChunk & a_C
if ((PosY < 0) || (PosY >= cChunkDef::Height))
{
AddSpeedY(1);
AddPosition(GetSpeed() * (a_Dt.count() / 1000));
AddPosition(GetSpeed() * (static_cast<double>(a_Dt.count()) / 1000));
return;
}
@@ -53,7 +53,7 @@ void cFireworkEntity::HandlePhysics(std::chrono::milliseconds a_Dt, cChunk & a_C
}
AddSpeedY(1);
AddPosition(GetSpeed() * (a_Dt.count() / 1000));
AddPosition(GetSpeed() * (static_cast<double>(a_Dt.count()) / 1000));
}