(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.
authorrubidium
Sat, 17 Nov 2007 15:04:38 +0000
changeset 7900 534a7cc99597
parent 7899 ff8ddda625b5
child 7901 6e8ab6c5473d
(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
--- a/src/aircraft_cmd.cpp	Sat Nov 17 15:03:19 2007 +0000
+++ b/src/aircraft_cmd.cpp	Sat Nov 17 15:04:38 2007 +0000
@@ -1154,7 +1154,7 @@
 
 		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) :