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

Function GfxInitSpriteMem

src/spritecache.cpp:897–905  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

895}
896
897void GfxInitSpriteMem()
898{
899 /* Reset the spritecache 'pool' */
900 _spritecache.clear();
901 _spritecache.shrink_to_fit();
902
903 _sprite_files.clear();
904 _spritecache_bytes_used = 0;
905}
906
907/**
908 * Remove all encoded sprites from the sprite cache without

Callers 2

GfxLoadSpritesFunction · 0.85
MockGfxLoadSpritesFunction · 0.85

Calls 1

clearMethod · 0.45

Tested by 1

MockGfxLoadSpritesFunction · 0.68