summaryrefslogtreecommitdiffstats
path: root/src/Entities/FireworkEntity.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-01-18 11:02:17 +0100
committerMattes D <github@xoft.cz>2015-01-18 11:02:17 +0100
commite211aafaa45b0e4a12e9c50ee445377077ea8172 (patch)
tree649827f49829a154a4154d2368ea923f479af58c /src/Entities/FireworkEntity.cpp
parentcorrect comment to say milliseconds (diff)
downloadcuberite-e211aafaa45b0e4a12e9c50ee445377077ea8172.tar
cuberite-e211aafaa45b0e4a12e9c50ee445377077ea8172.tar.gz
cuberite-e211aafaa45b0e4a12e9c50ee445377077ea8172.tar.bz2
cuberite-e211aafaa45b0e4a12e9c50ee445377077ea8172.tar.lz
cuberite-e211aafaa45b0e4a12e9c50ee445377077ea8172.tar.xz
cuberite-e211aafaa45b0e4a12e9c50ee445377077ea8172.tar.zst
cuberite-e211aafaa45b0e4a12e9c50ee445377077ea8172.zip
Diffstat (limited to 'src/Entities/FireworkEntity.cpp')
-rw-r--r--src/Entities/FireworkEntity.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/FireworkEntity.cpp b/src/Entities/FireworkEntity.cpp
index 9dc7850a7..32eaf669a 100644
--- a/src/Entities/FireworkEntity.cpp
+++ b/src/Entities/FireworkEntity.cpp
@@ -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));
}