summaryrefslogtreecommitdiffstats
path: root/src/Entities/Minecart.cpp
diff options
context:
space:
mode:
authorChristophe Piveteau <chripiveteau@gmail.com>2014-08-13 19:18:11 +0200
committerChristophe Piveteau <chripiveteau@gmail.com>2014-08-13 19:18:11 +0200
commit3f117897fbda4eec95ad5cdd728f197840dd7224 (patch)
tree34870379faea8d7550c353cf2a2f4aaa7ae11b18 /src/Entities/Minecart.cpp
parentFixed braces and intendation errors (diff)
downloadcuberite-3f117897fbda4eec95ad5cdd728f197840dd7224.tar
cuberite-3f117897fbda4eec95ad5cdd728f197840dd7224.tar.gz
cuberite-3f117897fbda4eec95ad5cdd728f197840dd7224.tar.bz2
cuberite-3f117897fbda4eec95ad5cdd728f197840dd7224.tar.lz
cuberite-3f117897fbda4eec95ad5cdd728f197840dd7224.tar.xz
cuberite-3f117897fbda4eec95ad5cdd728f197840dd7224.tar.zst
cuberite-3f117897fbda4eec95ad5cdd728f197840dd7224.zip
Diffstat (limited to '')
-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 5cf56d3d2..cd5e2adaa 100644
--- a/src/Entities/Minecart.cpp
+++ b/src/Entities/Minecart.cpp
@@ -881,9 +881,9 @@ bool cMinecart::TestEntityCollision(NIBBLETYPE a_RailMeta)
if ( Distance.z == 0. )
{
- Distance.z = 0.0001;
+ Distance.z = 0.0001;
}
-
+
if ( ((Distance.z>=0)&&((Distance.x/Distance.z)>=1)) || ((Distance.z<0)&&((Distance.x/Distance.z)<=1)) )
{
if ( (-GetSpeedX() * 0.4) < 0.01 )