src/order_gui.cpp
changeset 10099 a42cafcba550
parent 9942 c3677fa5563f
child 10145 849ba8b8626b
equal deleted inserted replaced
10098:de9c1bd521c8 10099:a42cafcba550
   316 				break;
   316 				break;
   317 		}
   317 		}
   318 	}
   318 	}
   319 
   319 
   320 	/* check waypoint */
   320 	/* check waypoint */
   321 	if (IsTileType(tile, MP_RAILWAY) &&
   321 	if (IsRailWaypointTile(tile) &&
   322 			v->type == VEH_TRAIN &&
   322 			v->type == VEH_TRAIN &&
   323 			IsTileOwner(tile, _local_player) &&
   323 			IsTileOwner(tile, _local_player)) {
   324 			IsRailWaypoint(tile)) {
       
   325 		order.MakeGoToWaypoint(GetWaypointByTile(tile)->index);
   324 		order.MakeGoToWaypoint(GetWaypointByTile(tile)->index);
   326 		if (_settings_client.gui.new_nonstop) order.SetNonStopType(ONSF_NO_STOP_AT_INTERMEDIATE_STATIONS);
   325 		if (_settings_client.gui.new_nonstop) order.SetNonStopType(ONSF_NO_STOP_AT_INTERMEDIATE_STATIONS);
   327 		return order;
   326 		return order;
   328 	}
   327 	}
   329 
   328