* Update the buoy orders to be waypoint orders. * @param o the order 'list' to check. */
| 29 | * @param o the order 'list' to check. |
| 30 | */ |
| 31 | static void UpdateWaypointOrder(Order &o) |
| 32 | { |
| 33 | if (!o.IsType(OT_GOTO_STATION)) return; |
| 34 | |
| 35 | const Station *st = Station::Get(o.GetDestination().ToStationID()); |
| 36 | if ((st->had_vehicle_of_type & HVOT_WAYPOINT) == 0) return; |
| 37 | |
| 38 | o.MakeGoToWaypoint(o.GetDestination().ToStationID()); |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Perform all steps to upgrade from the old station buoys to the new version |
no test coverage detected