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

Don't update map animations on ticks where nothing is updated

This commit is contained in:
mix
2025-05-24 18:13:53 +01:00
parent 0a63059580
commit 7100c6b476

View File

@@ -693,6 +693,10 @@ static bool IsTileVisible(const ViewportList& viewports, const TileCoordsXY tile
static void UpdateAll(const ViewportList& viewports)
{
// Currently nothing updates on odd ticks.
if (getGameState().currentTicks & 1)
return;
auto it = _mapAnimationsUpdate.begin();
while (it != _mapAnimationsUpdate.end())
{