summaryrefslogtreecommitdiffstats
path: root/src/Entities/Minecart.h
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2016-04-15 05:38:26 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2016-04-15 05:38:26 +0200
commit25b6bac8651d10308e8e1b0209fdaf2ee83a7a0d (patch)
treeb9577f0838501dc98b643f2818e514a189f37b8c /src/Entities/Minecart.h
parentMerge pull request #3140 from cuberite/revert-3137-issue3136 (diff)
parentAdd speed limit enforcement for minecarts (diff)
downloadcuberite-25b6bac8651d10308e8e1b0209fdaf2ee83a7a0d.tar
cuberite-25b6bac8651d10308e8e1b0209fdaf2ee83a7a0d.tar.gz
cuberite-25b6bac8651d10308e8e1b0209fdaf2ee83a7a0d.tar.bz2
cuberite-25b6bac8651d10308e8e1b0209fdaf2ee83a7a0d.tar.lz
cuberite-25b6bac8651d10308e8e1b0209fdaf2ee83a7a0d.tar.xz
cuberite-25b6bac8651d10308e8e1b0209fdaf2ee83a7a0d.tar.zst
cuberite-25b6bac8651d10308e8e1b0209fdaf2ee83a7a0d.zip
Diffstat (limited to 'src/Entities/Minecart.h')
-rw-r--r--src/Entities/Minecart.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Entities/Minecart.h b/src/Entities/Minecart.h
index c4b1d7f6d..0e5c99f80 100644
--- a/src/Entities/Minecart.h
+++ b/src/Entities/Minecart.h
@@ -51,6 +51,9 @@ protected:
Vector3i m_DetectorRailPosition;
bool m_bIsOnDetectorRail;
+ // Overwrite to enforce speed limit
+ virtual void DoSetSpeed(double a_SpeedX, double a_SpeedY, double a_SpeedZ);
+
cMinecart(ePayload a_Payload, double a_X, double a_Y, double a_Z);
/** Handles physics on normal rails