summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-04-18 13:21:51 +0000
committerrubidium <rubidium@openttd.org>2009-04-18 13:21:51 +0000
commit523a92493db441c6bda816f3cdd6cbd4dcc5c1cd (patch)
tree5d66b0eb96e87caa00b4bf52d43ae41c973e3033 /src
parentfaa1ec7a5db3028017809c02c9d11156aa75b325 (diff)
downloadopenttd-523a92493db441c6bda816f3cdd6cbd4dcc5c1cd.tar.xz
(svn r16078) -Change: do not show stop location for via orders; they don't stop there
Diffstat (limited to 'src')
-rw-r--r--src/order_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index e2a93e87b..28e67443a 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -202,7 +202,7 @@ void DrawOrderString(const Vehicle *v, const Order *order, int order_index, int
}
} else {
SetDParam(4, (order->GetNonStopType() & ONSF_NO_STOP_AT_DESTINATION_STATION) ? STR_EMPTY : _station_load_types[unload][load]);
- if (v->type == VEH_TRAIN) {
+ if (v->type == VEH_TRAIN && (order->GetNonStopType() & ONSF_NO_STOP_AT_DESTINATION_STATION) == 0) {
SetDParam(6, order->GetStopLocation() + STR_ORDER_STOP_LOCATION_NEAR_END);
}
}