mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(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:
parent
f22ed6f85e
commit
2e8d37dcdf
@ -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) :
|
||||
|
Loading…
Reference in New Issue
Block a user