summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2007-11-19 18:58:04 +0000
committerskidd13 <skidd13@openttd.org>2007-11-19 18:58:04 +0000
commitf4a5c80d7193821bdfe9b3669e245b43c6feee3d (patch)
tree18ac24e0b26fa3cf7cb17962dde493f142f39a03 /src/vehicle.cpp
parent98f66552beadfa14cf28cd126fc462a5abe3087b (diff)
downloadopenttd-f4a5c80d7193821bdfe9b3669e245b43c6feee3d.tar.xz
(svn r11476) -Codechange: rename the function myabs to abs to get rid of an unneeded define
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index e486dd2ff..b91b232a9 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -1385,8 +1385,8 @@ Vehicle *CheckClickOnVehicle(const ViewPort *vp, int x, int y)
y >= v->top_coord && y <= v->bottom_coord) {
dist = max(
- myabs( ((v->left_coord + v->right_coord)>>1) - x ),
- myabs( ((v->top_coord + v->bottom_coord)>>1) - y )
+ abs( ((v->left_coord + v->right_coord)>>1) - x ),
+ abs( ((v->top_coord + v->bottom_coord)>>1) - y )
);
if (dist < best_dist) {