mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-21 05:29:11 +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:
@@ -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) :
|
||||||
|
Reference in New Issue
Block a user