summaryrefslogtreecommitdiffstats
path: root/src/Entities/Minecart.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/Minecart.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/Minecart.cpp')
-rw-r--r--src/Entities/Minecart.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/Minecart.cpp b/src/Entities/Minecart.cpp
index a906c9767..776f957f4 100644
--- a/src/Entities/Minecart.cpp
+++ b/src/Entities/Minecart.cpp
@@ -177,7 +177,7 @@ void cMinecart::HandlePhysics(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
default: VERIFY(!"Unhandled rail type despite checking if block was rail!"); break;
}
- AddPosition(GetSpeed() * (a_Dt.count() / 1000)); // Commit changes; as we use our own engine when on rails, this needs to be done, whereas it is normally in Entity.cpp
+ AddPosition(GetSpeed() * (static_cast<double>(a_Dt.count()) / 1000)); // Commit changes; as we use our own engine when on rails, this needs to be done, whereas it is normally in Entity.cpp
}
else
{