1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 09:14:58 +01:00

Remove sprite.h includes where possible

This commit is contained in:
duncanspumpkin
2021-05-29 08:54:33 +01:00
parent ee981e62e1
commit 98f9f24909
79 changed files with 0 additions and 97 deletions

View File

@@ -319,25 +319,6 @@ static void sprite_reset(SpriteBase* sprite)
sprite->Type = EntityType::Null;
}
/**
* Clears all the unused sprite memory to zero. Probably so that it can be compressed better when saving.
* rct2: 0x0069EBA4
*/
void sprite_clear_all_unused()
{
for (auto index : _freeIdList)
{
auto* entity = GetEntity(index);
if (entity == nullptr)
{
continue;
}
sprite_reset(entity);
_spriteFlashingList[entity->sprite_index] = false;
}
}
static constexpr uint16_t MAX_MISC_SPRITES = 300;
static void AddToEntityList(SpriteBase* entity)
{