* 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. */
| 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. |
no outgoing calls
no test coverage detected