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

Method SetRefit

src/order_cmd.cpp:148–151  ·  view source on GitHub ↗

* Make this depot/station order also a refit order. * @param cargo the cargo type to change to. * @pre IsType(OT_GOTO_DEPOT) || IsType(OT_GOTO_STATION). */

Source from the content-addressed store, hash-verified

146 * @pre IsType(OT_GOTO_DEPOT) || IsType(OT_GOTO_STATION).
147 */
148void Order::SetRefit(CargoType cargo)
149{
150 this->refit_cargo = cargo;
151}
152
153/**
154 * Does this order have the same type, flags and destination?

Callers 4

MakeGoToDepotMethod · 0.95
CmdModifyOrderFunction · 0.80
CmdOrderRefitFunction · 0.80
AfterLoadGameFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected