summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Piveteau <chripiveteau@gmail.com>2014-08-15 14:00:51 +0200
committerChristophe Piveteau <chripiveteau@gmail.com>2014-08-15 14:00:51 +0200
commitc473d8cfb82009411f5a3977b7041ee49ba08003 (patch)
tree43f6e884a57b5bfd90288fb11acd24eee5f3415f
parentEnd of comment moved away from new line (diff)
downloadcuberite-c473d8cfb82009411f5a3977b7041ee49ba08003.tar
cuberite-c473d8cfb82009411f5a3977b7041ee49ba08003.tar.gz
cuberite-c473d8cfb82009411f5a3977b7041ee49ba08003.tar.bz2
cuberite-c473d8cfb82009411f5a3977b7041ee49ba08003.tar.lz
cuberite-c473d8cfb82009411f5a3977b7041ee49ba08003.tar.xz
cuberite-c473d8cfb82009411f5a3977b7041ee49ba08003.tar.zst
cuberite-c473d8cfb82009411f5a3977b7041ee49ba08003.zip
-rw-r--r--src/Entities/Minecart.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Minecart.cpp b/src/Entities/Minecart.cpp
index f190d972e..4753f720d 100644
--- a/src/Entities/Minecart.cpp
+++ b/src/Entities/Minecart.cpp
@@ -880,7 +880,7 @@ bool cMinecart::TestEntityCollision(NIBBLETYPE a_RailMeta)
/* Check to which side the minecart is to be pushed.
Let's consider a z-x-coordinate system where the minecart is the center (0/0).
- The minecart moves along the line z = -x, the perpendicular line to this is z = x.
+ The minecart moves along the line x = -z, the perpendicular line to this is x = z.
In order to decide to which side the minecart is to be pushed, it must be checked on what side of the perpendicular line the pushing entity is located. */
if (
((Distance.z > 0) && ((Distance.x / Distance.z) >= 1)) ||
@@ -920,7 +920,7 @@ bool cMinecart::TestEntityCollision(NIBBLETYPE a_RailMeta)
/* Check to which side the minecart is to be pushed.
Let's consider a z-x-coordinate system where the minecart is the center (0/0).
- The minecart moves along the line z = x, the perpendicular line to this is z = -x.
+ The minecart moves along the line x = z, the perpendicular line to this is x = -z.
In order to decide to which side the minecart is to be pushed, it must be checked on what side of the perpendicular line the pushing entity is located. */
if (
((Distance.z > 0) && ((Distance.x / Distance.z) <= -1)) ||