1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

Prevent scenery clocks from invalidating every frame

This commit is contained in:
mix
2025-05-24 03:57:48 +01:00
parent bfe150f249
commit d5bd92c483

View File

@@ -167,9 +167,13 @@ static std::optional<UpdateType> UpdateSmallSceneryAnimation(
}
break;
}
if constexpr (invalidate)
{
ViewportsInvalidate(loc.x, loc.y, baseZ, scenery.GetClearanceZ(), kMaxZoom);
}
}
}
if constexpr (invalidate)
else if constexpr (invalidate)
{
ViewportsInvalidate(loc.x, loc.y, baseZ, scenery.GetClearanceZ(), kMaxZoom);
}