(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.

This commit is contained in:
rubidium 2007-11-17 15:04:38 +00:00
parent f22ed6f85e
commit 2e8d37dcdf
1 changed files with 1 additions and 1 deletions

View File

@ -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) :