OpenTTD Source: AircraftCache Struct Reference

OpenTTD Source 15.0-RC2

Data Fields
AircraftCache Struct Reference

Variables that are cached to improve performance and such. More...

`#include <aircraft.h>`

## Data Fields
uint32_t | cached_max_range_sqr = 0
| Cached squared maximum range.
uint16_t | cached_max_range = 0
| Cached maximum range.

## Detailed Description

Variables that are cached to improve performance and such.

Definition at line 64 of file aircraft.h.

## Field Documentation

## ◆ cached_max_range

uint16_t AircraftCache::cached_max_range = 0

Cached maximum range.

Definition at line 66 of file aircraft.h.

Referenced by CheckAircraftOrderDistance(), Aircraft::GetRange(), and UpdateAircraftCache().

## ◆ cached_max_range_sqr

uint32_t AircraftCache::cached_max_range_sqr = 0

Cached squared maximum range.

Definition at line 65 of file aircraft.h.

Referenced by CheckAircraftOrderDistance(), DrawOrderString(), FindNearestHangar(), and UpdateAircraftCache().

The documentation for this struct was generated from the following file:

- src/aircraft.h