summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-11-17 15:04:38 +0000
committerrubidium <rubidium@openttd.org>2007-11-17 15:04:38 +0000
commit004fe26a2776583067340f14c99f97e668d91db7 (patch)
tree5b962403fe6f514df4d3cd222dd22514d040e736
parent4c4ea8cfdf240456f944711c898f364b40a516ef (diff)
downloadopenttd-004fe26a2776583067340f14c99f97e668d91db7.tar.xz
(svn r11451) -Fix [FS#1287]: very fast aircraft would sometimes abruptly stop at the begin of the landing runway, turn a few times and then drive slowly to the end of the runway.
-rw-r--r--src/aircraft_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index cfcd00374..d04a632d4 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -1154,7 +1154,7 @@ static bool AircraftController(Vehicle *v)
GetNewVehiclePosResult gp;
- if (dist < 4) {
+ if (dist < 4 || amd->flag & AMED_LAND) {
/* move vehicle one pixel towards target */
gp.x = (v->x_pos != (x + amd->x)) ?
v->x_pos + ((x + amd->x > v->x_pos) ? 1 : -1) :