Changeset - r23612:533fa8390e95
[Not reviewed]
master
0 1 0
PeterN - 6 years ago 2019-04-13 11:43:49
peter@fuzzle.org
Change: Always report error when ordering a road vehicle to wrong type of road stop. (#7316)

This was inconsistent before, depending on road/tram and articulated/single vehicle status.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/order_gui.cpp
Show inline comments
 
@@ -399,7 +399,7 @@ static Order GetOrderCmdFromTile(const V
 
				case VEH_SHIP:     facil = FACIL_DOCK;    break;
 
				case VEH_TRAIN:    facil = FACIL_TRAIN;   break;
 
				case VEH_AIRCRAFT: facil = FACIL_AIRPORT; break;
 
				case VEH_ROAD:     facil = RoadVehicle::From(v)->IsBus() ? FACIL_BUS_STOP : FACIL_TRUCK_STOP; break;
 
				case VEH_ROAD:     facil = FACIL_BUS_STOP | FACIL_TRUCK_STOP; break;
 
				default: NOT_REACHED();
 
			}
 
			if (st->facilities & facil) {
0 comments (0 inline, 0 general)