summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Piveteau <chripiveteau@gmail.com>2014-08-15 13:43:45 +0200
committerChristophe Piveteau <chripiveteau@gmail.com>2014-08-15 13:43:45 +0200
commitbe03b84048a49e04db11aa6ce80b3d18fff313b1 (patch)
treef2e62f77ddc979a1be41556a0847a5d4abf6de46 /src
parentAdd some comments (diff)
downloadcuberite-be03b84048a49e04db11aa6ce80b3d18fff313b1.tar
cuberite-be03b84048a49e04db11aa6ce80b3d18fff313b1.tar.gz
cuberite-be03b84048a49e04db11aa6ce80b3d18fff313b1.tar.bz2
cuberite-be03b84048a49e04db11aa6ce80b3d18fff313b1.tar.lz
cuberite-be03b84048a49e04db11aa6ce80b3d18fff313b1.tar.xz
cuberite-be03b84048a49e04db11aa6ce80b3d18fff313b1.tar.zst
cuberite-be03b84048a49e04db11aa6ce80b3d18fff313b1.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Minecart.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Entities/Minecart.cpp b/src/Entities/Minecart.cpp
index 0455c9ab3..f190d972e 100644
--- a/src/Entities/Minecart.cpp
+++ b/src/Entities/Minecart.cpp
@@ -881,8 +881,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.
- 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.
- */
+ 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)) ||
((Distance.z < 0) && ((Distance.x / Distance.z) <= 1))