MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / MakeGoToWaypoint

Method MakeGoToWaypoint

src/order_cmd.cpp:87–92  ·  view source on GitHub ↗

* Makes this order a Go To Waypoint order. * @param destination the waypoint to go to. */

Source from the content-addressed store, hash-verified

85 * @param destination the waypoint to go to.
86 */
87void Order::MakeGoToWaypoint(StationID destination)
88{
89 this->type = OT_GOTO_WAYPOINT;
90 this->flags = 0;
91 this->dest = destination;
92}
93
94/**
95 * Makes this order a Loading order.

Callers 3

GetOrderCmdFromTileFunction · 0.80
InsertOrderMethod · 0.80
UpdateWaypointOrderFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected