1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 01:04:50 +01:00

Don't invalidate map animations for tiles that are not in view

This commit is contained in:
mix
2025-05-22 23:14:56 +01:00
parent b96fe8f51b
commit e464b2ebe7
22 changed files with 207 additions and 76 deletions

View File

@@ -6316,7 +6316,7 @@ static void AnimateSceneryDoor(const CoordsXYZD& doorLocation, const CoordsXYZ&
door->SetIsAnimating(true);
play_scenery_door_open_sound(trackLocation, door);
MapAnimation::Create(doorLocation);
MapAnimation::MarkTileForUpdate(doorLocation);
}
if (isLastVehicle)
@@ -6326,7 +6326,7 @@ static void AnimateSceneryDoor(const CoordsXYZD& doorLocation, const CoordsXYZ&
door->SetIsAnimating(true);
play_scenery_door_close_sound(trackLocation, door);
MapAnimation::Create(doorLocation);
MapAnimation::MarkTileForUpdate(doorLocation);
}
}