summaryrefslogtreecommitdiff
path: root/roadveh_gui.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-09-22 23:13:12 +0000
committerbjarni <bjarni@openttd.org>2006-09-22 23:13:12 +0000
commit0f78b620fbb4e4ca744ceffffc43a9c0846bca12 (patch)
treec38e8a4f6323c29606c2e5cde3606e29221532db /roadveh_gui.c
parentbae85177d49fa50ff1d9c49ebee879f8de762191 (diff)
downloadopenttd-0f78b620fbb4e4ca744ceffffc43a9c0846bca12.tar.xz
(svn r6497) -Fix r6165: Vehicles heading for depots when their orders contained "service in depot" displayed the stopping in depot string
This turned out to be due to OFB_HALT_IN_DEPOT and OFB_SERVICE_IF_NEEDED using the same bit It appears that it doesn't matter for the code, so I adapted the string selection code to handle this
Diffstat (limited to 'roadveh_gui.c')
-rw-r--r--roadveh_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/roadveh_gui.c b/roadveh_gui.c
index 47df5cdc4..7c85142cf 100644
--- a/roadveh_gui.c
+++ b/roadveh_gui.c
@@ -343,7 +343,7 @@ static void RoadVehViewWndProc(Window *w, WindowEvent *e)
Depot *depot = GetDepot(v->current_order.dest);
SetDParam(0, depot->town_index);
SetDParam(1, v->cur_speed / 2);
- if (HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT)) {
+ if (HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT) && !HASBIT(v->current_order.flags, OFB_PART_OF_ORDERS)) {
str = STR_HEADING_FOR_ROAD_DEPOT + _patches.vehicle_speed;
} else {
str = STR_HEADING_FOR_ROAD_DEPOT_SERVICE + _patches.vehicle_speed;