diff options
author | skidd13 <skidd13@openttd.org> | 2007-11-19 18:58:04 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2007-11-19 18:58:04 +0000 |
commit | f4a5c80d7193821bdfe9b3669e245b43c6feee3d (patch) | |
tree | 18ac24e0b26fa3cf7cb17962dde493f142f39a03 /src/aircraft_cmd.cpp | |
parent | 98f66552beadfa14cf28cd126fc462a5abe3087b (diff) | |
download | openttd-f4a5c80d7193821bdfe9b3669e245b43c6feee3d.tar.xz |
(svn r11476) -Codechange: rename the function myabs to abs to get rid of an unneeded define
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r-- | src/aircraft_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index 65d90fa47..72d13e0f4 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -1112,7 +1112,7 @@ static bool AircraftController(Vehicle *v) } /* Get distance from destination pos to current pos. */ - uint dist = myabs(x + amd->x - v->x_pos) + myabs(y + amd->y - v->y_pos); + uint dist = abs(x + amd->x - v->x_pos) + abs(y + amd->y - v->y_pos); /* Need exact position? */ if (!(amd->flag & AMED_EXACTPOS) && dist <= (amd->flag & AMED_SLOWTURN ? 8U : 4U)) return true; |