|
@@ -1204,7 +1204,7 @@ void HandleMissingAircraftOrders(Aircraf
|
|
|
*/
|
|
|
const Station *st = GetTargetAirportIfValid(v);
|
|
|
if (st == NULL) {
|
|
|
Backup<CompanyByte> cur_company(_current_company, v->owner);
|
|
|
Backup<CompanyByte> cur_company(_current_company, v->owner, FILE_LINE);
|
|
|
CommandCost ret = DoCommand(v->tile, v->index, 0, DC_EXEC, CMD_SEND_AIRCRAFT_TO_HANGAR);
|
|
|
cur_company.Restore();
|
|
|
|
|
@@ -1510,7 +1510,7 @@ static void AircraftEventHandler_HeliTak
|
|
|
|
|
|
/* Send the helicopter to a hangar if needed for replacement */
|
|
|
if (v->NeedsAutomaticServicing()) {
|
|
|
Backup<CompanyByte> cur_company(_current_company, v->owner);
|
|
|
Backup<CompanyByte> cur_company(_current_company, v->owner, FILE_LINE);
|
|
|
DoCommand(v->tile, v->index, DEPOT_SERVICE | DEPOT_LOCATE_HANGAR, DC_EXEC, CMD_SEND_AIRCRAFT_TO_HANGAR);
|
|
|
cur_company.Restore();
|
|
|
}
|
|
@@ -1562,7 +1562,7 @@ static void AircraftEventHandler_Landing
|
|
|
|
|
|
/* check if the aircraft needs to be replaced or renewed and send it to a hangar if needed */
|
|
|
if (v->NeedsAutomaticServicing()) {
|
|
|
Backup<CompanyByte> cur_company(_current_company, v->owner);
|
|
|
Backup<CompanyByte> cur_company(_current_company, v->owner, FILE_LINE);
|
|
|
DoCommand(v->tile, v->index, DEPOT_SERVICE, DC_EXEC, CMD_SEND_AIRCRAFT_TO_HANGAR);
|
|
|
cur_company.Restore();
|
|
|
}
|