mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Fix duck removal not invalidating screen
This commit is contained in:
@@ -96,6 +96,7 @@ void rct_duck::Invalidate()
|
||||
|
||||
void rct_duck::Remove()
|
||||
{
|
||||
Invalidate();
|
||||
sprite_remove((rct_sprite*)this);
|
||||
}
|
||||
|
||||
@@ -383,6 +384,7 @@ void duck_remove_all()
|
||||
nextSpriteIndex = sprite->next;
|
||||
if (sprite->type == SPRITE_MISC_DUCK)
|
||||
{
|
||||
invalidate_sprite_0((rct_sprite*)sprite);
|
||||
sprite_remove((rct_sprite*)sprite);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user