diff options
author | tron <tron@openttd.org> | 2004-12-19 21:03:16 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2004-12-19 21:03:16 +0000 |
commit | 7a82b777bf6dea3ecd0bf7764bd59636af1d5fc8 (patch) | |
tree | ba13f833d2739b70767ad7b2c2a24a6b818041b3 /order_gui.c | |
parent | 5e25f6b2363d4749ba1459780b0845622675c3d2 (diff) | |
download | openttd-7a82b777bf6dea3ecd0bf7764bd59636af1d5fc8.tar.xz |
(svn r1177) Enable non-stop flag for waypoints
Diffstat (limited to 'order_gui.c')
-rw-r--r-- | order_gui.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/order_gui.c b/order_gui.c index 0722215e0..f3bd90a51 100644 --- a/order_gui.c +++ b/order_gui.c @@ -72,6 +72,12 @@ static void DrawOrdersWindow(Window *w) SETBIT(w->disabled_state, 9); /* unload */ SetDParam(2,STR_SERVICE); break; + + case OT_GOTO_WAYPOINT: + SETBIT(w->disabled_state, 8); /* full load */ + SETBIT(w->disabled_state, 9); /* unload */ + break; + default: SETBIT(w->disabled_state, 6); /* nonstop */ SETBIT(w->disabled_state, 8); /* full load */ @@ -118,7 +124,7 @@ static void DrawOrdersWindow(Window *w) SetDParam(1, s); } else if (ord.type == OT_GOTO_WAYPOINT) { SetDParam(2, ord.station); - SetDParam(1, STR_GO_TO_WAYPOINT); + SetDParam(1, (ord.flags & OF_NON_STOP) ? STR_GO_NON_STOP_TO_WAYPOINT : STR_GO_TO_WAYPOINT); } } { |