mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-19 22:02:57 +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)
|
static void UpdateAll(const ViewportList& viewports)
|
||||||
{
|
{
|
||||||
|
// Currently nothing updates on odd ticks.
|
||||||
|
if (getGameState().currentTicks & 1)
|
||||||
|
return;
|
||||||
|
|
||||||
auto it = _mapAnimationsUpdate.begin();
|
auto it = _mapAnimationsUpdate.begin();
|
||||||
while (it != _mapAnimationsUpdate.end())
|
while (it != _mapAnimationsUpdate.end())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user