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