(svn r9752) -Codechange: remove some duplication related to BeginLoading.

This commit is contained in:
rubidium
2007-04-29 18:21:24 +00:00
parent bf04c88eca
commit 6440440f12
5 changed files with 20 additions and 33 deletions

View File

@@ -1509,15 +1509,7 @@ static void AircraftEntersTerminal(Vehicle *v)
0);
}
Order old_order = v->current_order;
v->BeginLoading();
v->current_order.flags = 0;
if (old_order.type == OT_GOTO_STATION &&
v->current_order.dest == v->last_station_visited) {
v->current_order.flags =
(old_order.flags & (OF_FULL_LOAD | OF_UNLOAD | OF_TRANSFER)) | OF_NON_STOP;
}
SET_EXPENSES_TYPE(EXPENSES_AIRCRAFT_INC);
LoadUnloadVehicle(v, true);