Changeset - r8003:e26dc8a11a19
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-12-02 21:35:44
rubidium@openttd.org
(svn r11562) -Fix [FS#1503] (r11546): aircraft sometimes stopped mid-air when the airport got destroyed.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/aircraft_cmd.cpp
Show inline comments
 
@@ -1044,7 +1044,7 @@ static bool AircraftController(Vehicle *
 
		/* Jump into our "holding pattern" state machine if possible */
 
		if (v->u.air.pos >= afc->nofelements) {
 
			v->u.air.pos = v->u.air.previous_pos = AircraftGetEntryPoint(v, afc);
 
		} else {
 
		} else if (v->u.air.targetairport != v->current_order.dest) {
 
			/* If not possible, just get out of here fast */
 
			v->u.air.state = FLYING;
 
			UpdateAircraftCache(v);
0 comments (0 inline, 0 general)