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

Method IsRefit

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

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

Source from the content-addressed store, hash-verified

111 * @return true if a refit should happen.
112 */
113 inline bool IsRefit() const { return this->refit_cargo < NUM_CARGO || this->refit_cargo == CARGO_AUTO_REFIT; }
114
115 /**
116 * Is this order a auto-refit order.

Callers 11

GetNextDecisionNodeMethod · 0.80
DrawOrderStringFunction · 0.80
UpdateButtonStateMethod · 0.80
VehicleEnterDepotFunction · 0.80
ReserveConsistFunction · 0.80
LoadUnloadVehicleFunction · 0.80
RefreshLinksMethod · 0.80
IsRefitOrderMethod · 0.80
GetOrderRefitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected