mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-19 15:25:39 +00:00
(svn r15227) -Fix [FS#2571](r1): aircraft could be 'loading in the air' after converting old savegames
This commit is contained in:
parent
ceb60b426e
commit
e3cc807c7a
@ -181,6 +181,10 @@ void UpdateOldAircraft()
|
|||||||
|
|
||||||
AircraftLeaveHangar(v_oldstyle); // make airplane visible if it was in a depot for example
|
AircraftLeaveHangar(v_oldstyle); // make airplane visible if it was in a depot for example
|
||||||
v_oldstyle->vehstatus &= ~VS_STOPPED; // make airplane moving
|
v_oldstyle->vehstatus &= ~VS_STOPPED; // make airplane moving
|
||||||
|
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();
|
||||||
|
}
|
||||||
v_oldstyle->u.air.state = FLYING;
|
v_oldstyle->u.air.state = FLYING;
|
||||||
AircraftNextAirportPos_and_Order(v_oldstyle); // move it to the entry point of the airport
|
AircraftNextAirportPos_and_Order(v_oldstyle); // move it to the entry point of the airport
|
||||||
GetNewVehiclePosResult gp = GetNewVehiclePos(v_oldstyle);
|
GetNewVehiclePosResult gp = GetNewVehiclePos(v_oldstyle);
|
||||||
|
Loading…
Reference in New Issue
Block a user