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