diff options
author | rubidium <rubidium@openttd.org> | 2008-04-05 23:36:54 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-05 23:36:54 +0000 |
commit | 5b47f81b0f6d46a876a24c0384791af123ac4ab7 (patch) | |
tree | 0ddf9ce628e1f7f3677425777bfeb4f04b23d7a0 /src/vehicle_gui.cpp | |
parent | 56e63a60447beeae0cc541191ea77f06e237b40a (diff) | |
download | openttd-5b47f81b0f6d46a876a24c0384791af123ac4ab7.tar.xz |
(svn r12584) -Codechange: do not access the order type directly.
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 25cd8c81b..8732673fa 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -917,7 +917,7 @@ void DrawSmallOrderList(const Vehicle *v, int x, int y) if (sel == 0) DrawString(x - 6, y, STR_SMALL_RIGHT_ARROW, TC_BLACK); sel--; - if (order->type == OT_GOTO_STATION) { + if (order->IsType(OT_GOTO_STATION)) { if (v->type == VEH_SHIP && GetStation(order->dest)->IsBuoy()) continue; SetDParam(0, order->dest); @@ -1952,7 +1952,7 @@ static void DrawVehicleViewWindow(Window *w) str = STR_8861_STOPPED; } } else { // vehicle is in a "normal" state, show current order - switch (v->current_order.type) { + switch (v->current_order.GetType()) { case OT_GOTO_STATION: { SetDParam(0, v->current_order.dest); SetDParam(1, v->GetDisplaySpeed()); |