mirror of https://github.com/OpenTTD/OpenTTD
(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.
parent
f22ed6f85e
commit
2e8d37dcdf
|
@ -1154,7 +1154,7 @@ static bool AircraftController(Vehicle *v)
|
||||||
|
|
||||||
GetNewVehiclePosResult gp;
|
GetNewVehiclePosResult gp;
|
||||||
|
|
||||||
if (dist < 4) {
|
if (dist < 4 || amd->flag & AMED_LAND) {
|
||||||
/* move vehicle one pixel towards target */
|
/* move vehicle one pixel towards target */
|
||||||
gp.x = (v->x_pos != (x + amd->x)) ?
|
gp.x = (v->x_pos != (x + amd->x)) ?
|
||||||
v->x_pos + ((x + amd->x > v->x_pos) ? 1 : -1) :
|
v->x_pos + ((x + amd->x > v->x_pos) ? 1 : -1) :
|
||||||
|
|
Loading…
Reference in New Issue