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

Method GetPeriodsInTransit

src/cargopacket.h:191–194  ·  view source on GitHub ↗

* Gets the number of cargo aging periods this cargo has been in transit. * By default a period is 2.5 days (CARGO_AGING_TICKS = 185 ticks), however * vehicle NewGRFs can override the length of the cargo aging period. The * value is capped at UINT16_MAX. * @return Length this cargo has been in transit. */

Source from the content-addressed store, hash-verified

189 * @return Length this cargo has been in transit.
190 */
191 inline uint16_t GetPeriodsInTransit() const
192 {
193 return this->periods_in_transit;
194 }
195
196 /**
197 * Gets the source of the packet for subsidy purposes.

Callers 2

PayFinalDeliveryMethod · 0.80
PayTransferMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected