OpenTTD Source  20241121-master-g67a0fccfad
SpriteCache Struct Reference

Data Fields

void * ptr
 
size_t file_pos
 
SpriteFilefile
 The file the sprite in this entry can be found in.
 
uint32_t id
 
int16_t lru
 
SpriteType type
 In some cases a single sprite is misused by two NewGRFs. Once as real sprite and once as recolour sprite. If the recolour sprite gets into the cache it might be drawn as real sprite which causes enormous trouble.
 
bool warned
 True iff the user has been warned about incorrect use of this sprite.
 
uint8_t control_flags
 Control flags, see SpriteCacheCtrlFlags.
 

Detailed Description

Definition at line 23 of file spritecache_internal.h.


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