* Get a reasonable (upper bound) estimate of the maximum * SpriteID used in OpenTTD; there will be no sprites with * a higher SpriteID, although there might be up to roughly * a thousand unused SpriteIDs below this number. * @note It's actually the number of spritecache items. * @return maximum SpriteID */
| 200 | * @return maximum SpriteID |
| 201 | */ |
| 202 | SpriteID GetMaxSpriteID() |
| 203 | { |
| 204 | return static_cast<SpriteID>(_spritecache.size()); |
| 205 | } |
| 206 | |
| 207 | static bool ResizeSpriteIn(SpriteLoader::SpriteCollection &sprite, ZoomLevel src, ZoomLevel tgt) |
| 208 | { |
no test coverage detected