(svn r16397) -Codechange: move GetVehicleOrder/GetLastVehicleOrder into Vehicle

This commit is contained in:
rubidium
2009-05-23 12:27:42 +00:00
parent f490394aa8
commit 86710c5185
8 changed files with 60 additions and 51 deletions

View File

@@ -1021,7 +1021,7 @@ void VehicleEnterDepot(Vehicle *v)
if (v->current_order.IsType(OT_GOTO_DEPOT)) {
InvalidateWindow(WC_VEHICLE_VIEW, v->index);
const Order *real_order = GetVehicleOrder(v, v->cur_order_index);
const Order *real_order = v->GetOrder(v->cur_order_index);
Order t = v->current_order;
v->current_order.MakeDummy();