1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 08:14:38 +01:00

Also shift jumping fountains and map animations

This commit is contained in:
Gymnasiast
2024-03-31 00:32:36 +01:00
parent 4f41734dc5
commit 86f80faca8
3 changed files with 24 additions and 0 deletions

View File

@@ -709,3 +709,14 @@ void MapAnimationAutoCreateAtTileElement(TileCoordsXY coords, TileElement* el)
break;
}
}
void ShiftAllMapAnimations(CoordsXY amount)
{
if (amount.x == 0 && amount.y == 0)
return;
for (auto& a : _mapAnimations)
{
a.location += amount;
}
}