From 2e8d37dcdf08afc074cbff9b610ddf9954af088e Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 17 Nov 2007 15:04:38 +0000 Subject: (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. --- src/aircraft_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) : -- cgit v1.2.3-70-g09d2