mirror of https://github.com/OpenTTD/OpenTTD
(svn r15230) -Fix (r1): aircraft could have zero speed while in air after loading old savegame
parent
93b1202576
commit
789fa42f52
|
@ -181,6 +181,7 @@ void UpdateOldAircraft()
|
|||
|
||||
AircraftLeaveHangar(v_oldstyle); // make airplane visible if it was in a depot for example
|
||||
v_oldstyle->vehstatus &= ~VS_STOPPED; // make airplane moving
|
||||
v_oldstyle->cur_speed = v_oldstyle->max_speed; // so aircraft don't have zero speed while in air
|
||||
if (!v_oldstyle->current_order.IsType(OT_GOTO_STATION) && !v_oldstyle->current_order.IsType(OT_GOTO_DEPOT)) {
|
||||
/* reset current order so aircraft doesn't have invalid "station-only" order */
|
||||
v_oldstyle->current_order.MakeDummy();
|
||||
|
|
Loading…
Reference in New Issue