From ebd916be3def20902cf19ffd16555074728eb9c3 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 13 Sep 2009 19:15:59 +0000 Subject: (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. --- src/order_cmd.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/order_cmd.cpp') diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 8eb7f7e97..2b0c09e5d 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -179,7 +179,7 @@ Order::Order(uint32 packed) */ void InvalidateVehicleOrder(const Vehicle *v, int data) { - InvalidateWindow(WC_VEHICLE_VIEW, v->index); + SetWindowDirty(WC_VEHICLE_VIEW, v->index); if (data != 0) { /* Calls SetDirty() too */ @@ -188,8 +188,8 @@ void InvalidateVehicleOrder(const Vehicle *v, int data) return; } - InvalidateWindow(WC_VEHICLE_ORDERS, v->index); - InvalidateWindow(WC_VEHICLE_TIMETABLE, v->index); + SetWindowDirty(WC_VEHICLE_ORDERS, v->index); + SetWindowDirty(WC_VEHICLE_TIMETABLE, v->index); } /** @@ -795,8 +795,8 @@ CommandCost CmdSkipToOrder(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3 } /* We have an aircraft/ship, they have a mini-schedule, so update them all */ - if (v->type == VEH_AIRCRAFT) InvalidateWindowClasses(WC_AIRCRAFT_LIST); - if (v->type == VEH_SHIP) InvalidateWindowClasses(WC_SHIPS_LIST); + if (v->type == VEH_AIRCRAFT) SetWindowClassesDirty(WC_AIRCRAFT_LIST); + if (v->type == VEH_SHIP) SetWindowClassesDirty(WC_SHIPS_LIST); return CommandCost(); } @@ -1515,7 +1515,7 @@ void RemoveOrderFromAllVehicles(OrderType type, DestinationID destination) if ((v->type == VEH_AIRCRAFT && order->IsType(OT_GOTO_DEPOT) ? OT_GOTO_STATION : order->GetType()) == type && v->current_order.GetDestination() == destination) { order->MakeDummy(); - InvalidateWindow(WC_VEHICLE_VIEW, v->index); + SetWindowDirty(WC_VEHICLE_VIEW, v->index); } /* Clear the order from the order-list */ @@ -1806,7 +1806,7 @@ bool ProcessOrders(Vehicle *v) case VEH_AIRCRAFT: case VEH_SHIP: - InvalidateWindowClasses(GetWindowClassForVehicleType(v->type)); + SetWindowClassesDirty(GetWindowClassForVehicleType(v->type)); break; } -- cgit v1.2.3-54-g00ecf