* Get the GRF-local sprite id of a given sprite. * @param sprite The sprite to look at. * @return The GRF-local sprite id. */
| 161 | * @return The GRF-local sprite id. |
| 162 | */ |
| 163 | uint32_t GetSpriteLocalID(SpriteID sprite) |
| 164 | { |
| 165 | if (!SpriteExists(sprite)) return 0; |
| 166 | return GetSpriteCache(sprite)->id; |
| 167 | } |
| 168 | |
| 169 | /** |
| 170 | * Count the sprites which originate from a specific file in a range of SpriteIDs. |
no test coverage detected