diff options
author | ShadowNinja <shadowninja@minetest.net> | 2021-12-01 18:54:12 -0500 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2022-04-08 14:55:21 +0100 |
commit | 7993909fabce4f796ca67b5a8139936667de25df (patch) | |
tree | 2ff9368e3e370ac00e2ae9d17a08ec68b3e426d1 /src/collision.cpp | |
parent | 88b21a72f18db6a94e58a8047c4dec6160327e73 (diff) | |
download | minetest-7993909fabce4f796ca67b5a8139936667de25df.tar.xz |
Spacing fixes
Diffstat (limited to 'src/collision.cpp')
-rw-r--r-- | src/collision.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/collision.cpp b/src/collision.cpp index ccc3a058d..be135a225 100644 --- a/src/collision.cpp +++ b/src/collision.cpp @@ -153,7 +153,7 @@ CollisionAxis axisAlignedCollision( (std::max(movingbox.MaxEdge.Z + speed.Z * time, staticbox.MaxEdge.Z) - std::min(movingbox.MinEdge.Z + speed.Z * time, staticbox.MinEdge.Z) - relbox.MinEdge.Z < 0) - ) + ) return COLLISION_AXIS_X; } } else { @@ -180,7 +180,7 @@ CollisionAxis axisAlignedCollision( (std::max(movingbox.MaxEdge.Y + speed.Y * time, staticbox.MaxEdge.Y) - std::min(movingbox.MinEdge.Y + speed.Y * time, staticbox.MinEdge.Y) - relbox.MinEdge.Y < 0) - ) + ) return COLLISION_AXIS_Z; } } |