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

Method MakeGoToStation

src/order_cmd.cpp:58–63  ·  view source on GitHub ↗

* Makes this order a Go To Station order. * @param destination the station to go to. */

Source from the content-addressed store, hash-verified

56 * @param destination the station to go to.
57 */
58void Order::MakeGoToStation(StationID destination)
59{
60 this->type = OT_GOTO_STATION;
61 this->flags = 0;
62 this->dest = destination;
63}
64
65/**
66 * Makes this order a Go To Depot order.

Callers 2

GetOrderCmdFromTileFunction · 0.80
InsertOrderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected