summaryrefslogtreecommitdiffstats
path: root/src/Entities/Minecart.h
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2015-01-16 14:42:44 +0100
committerTycho <work.tycho+git@gmail.com>2015-01-16 14:42:44 +0100
commit8dc9cf0c769b46dd3a97440f76cae4d83b52348e (patch)
tree85b5cf2003bc21aef4c451257731d9799a97c702 /src/Entities/Minecart.h
parentConverted cExpOrbEntity to std::chrono (diff)
downloadcuberite-8dc9cf0c769b46dd3a97440f76cae4d83b52348e.tar
cuberite-8dc9cf0c769b46dd3a97440f76cae4d83b52348e.tar.gz
cuberite-8dc9cf0c769b46dd3a97440f76cae4d83b52348e.tar.bz2
cuberite-8dc9cf0c769b46dd3a97440f76cae4d83b52348e.tar.lz
cuberite-8dc9cf0c769b46dd3a97440f76cae4d83b52348e.tar.xz
cuberite-8dc9cf0c769b46dd3a97440f76cae4d83b52348e.tar.zst
cuberite-8dc9cf0c769b46dd3a97440f76cae4d83b52348e.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Minecart.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Entities/Minecart.h b/src/Entities/Minecart.h
index 1c6f4a6c4..898776e71 100644
--- a/src/Entities/Minecart.h
+++ b/src/Entities/Minecart.h
@@ -56,7 +56,7 @@ protected:
/** Handles physics on normal rails
For each tick, slow down on flat rails, speed up or slow down on ascending/descending rails (depending on direction), and turn on curved rails
*/
- void HandleRailPhysics(NIBBLETYPE a_RailMeta, float a_Dt);
+ void HandleRailPhysics(NIBBLETYPE a_RailMeta, std::chrono::milliseconds a_Dt);
/** Handles powered rail physics
Each tick, speed up or slow down cart, depending on metadata of rail (powered or not)
@@ -66,10 +66,10 @@ protected:
/** Handles detector rail activation
Activates detector rails when a minecart is on them. Calls HandleRailPhysics() for physics simulations
*/
- void HandleDetectorRailPhysics(NIBBLETYPE a_RailMeta, float a_Dt);
+ void HandleDetectorRailPhysics(NIBBLETYPE a_RailMeta, std::chrono::milliseconds a_Dt);
/** Handles activator rails - placeholder for future implementation */
- void HandleActivatorRailPhysics(NIBBLETYPE a_RailMeta, float a_Dt);
+ void HandleActivatorRailPhysics(NIBBLETYPE a_RailMeta, std::chrono::milliseconds a_Dt);
/** Snaps a mincecart to a rail's axis, resetting its speed
For curved rails, it changes the cart's direction as well as snapping it to axis */