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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user