OpenTTD Source 20241224-master-gee860a5c8e
AircraftCache Struct Reference

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

#include <aircraft.h>

Data Fields

uint32_t cached_max_range_sqr
 Cached squared maximum range.
 
uint16_t cached_max_range
 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

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

Cached squared maximum range.

Definition at line 65 of file aircraft.h.

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


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