MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / InvalidateVehicleOrder

Function InvalidateVehicleOrder

src/order_cmd.cpp:213–226  ·  view source on GitHub ↗

* * Updates the widgets of a vehicle which contains the order-data * */

Source from the content-addressed store, hash-verified

211 *
212 */
213void InvalidateVehicleOrder(const Vehicle *v, int data)
214{
215 SetWindowDirty(WC_VEHICLE_VIEW, v->index);
216
217 if (data != 0) {
218 /* Calls SetDirty() too */
219 InvalidateWindowData(WC_VEHICLE_ORDERS, v->index, data);
220 InvalidateWindowData(WC_VEHICLE_TIMETABLE, v->index, data);
221 return;
222 }
223
224 SetWindowDirty(WC_VEHICLE_ORDERS, v->index);
225 SetWindowDirty(WC_VEHICLE_TIMETABLE, v->index);
226}
227
228/**
229 *

Callers 15

InsertOrderFunction · 0.85
DecloneOrderFunction · 0.85
DeleteOrderFunction · 0.85
CmdSkipToOrderFunction · 0.85
CmdMoveOrderFunction · 0.85
CmdModifyOrderFunction · 0.85
CmdCloneOrderFunction · 0.85
CmdOrderRefitFunction · 0.85
ProcessOrdersFunction · 0.85

Calls 2

SetWindowDirtyFunction · 0.85
InvalidateWindowDataFunction · 0.70

Tested by

no test coverage detected