forked from mirror/OpenTTD
(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
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user