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

Method IsAutoRefit

src/order_base.h:120–120  ·  view source on GitHub ↗

* Is this order a auto-refit order. * @pre IsType(OT_GOTO_DEPOT) || IsType(OT_GOTO_STATION) * @return true if a auto-refit should happen. */

Source from the content-addressed store, hash-verified

118 * @return true if a auto-refit should happen.
119 */
120 inline bool IsAutoRefit() const { return this->refit_cargo == CARGO_AUTO_REFIT; }
121
122 /**
123 * Get the cargo to to refit to.

Callers 3

DrawOrderStringFunction · 0.80
RefreshLinksMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected