aboutsummaryrefslogtreecommitdiff
path: root/games/endless-sky/files/patch-source_CollisionSet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'games/endless-sky/files/patch-source_CollisionSet.cpp')
-rw-r--r--games/endless-sky/files/patch-source_CollisionSet.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/games/endless-sky/files/patch-source_CollisionSet.cpp b/games/endless-sky/files/patch-source_CollisionSet.cpp
index 5ec1dea45546..3d32f80de62e 100644
--- a/games/endless-sky/files/patch-source_CollisionSet.cpp
+++ b/games/endless-sky/files/patch-source_CollisionSet.cpp
@@ -8,14 +8,3 @@
using namespace std;
-@@ -179,8 +180,8 @@ Body *CollisionSet::Line(const Projectil
- int stepX = (x <= endX ? 1 : -1);
- int stepY = (y <= endY ? 1 : -1);
- // Calculate the slope of the line, shifted so it is positive in both axes.
-- int mx = abs(endX - x);
-- int my = abs(endY - y);
-+ int mx = std::abs(endX - x);
-+ int my = std::abs(endY - y);
- // Behave as if each grid cell has this width and height. This guarantees
- // that we only need to work with integer coordinates.
- int scale = max(mx, 1) * max(my, 1);