From 7df1a8602c4465c2e7b2be65d86277de9ea63edf Mon Sep 17 00:00:00 2001 From: mix Date: Fri, 23 May 2025 04:25:12 +0100 Subject: [PATCH] Rename MapAnimation::CreateAll to MarkAllTiles --- src/openrct2-ui/title/TitleSequencePlayer.cpp | 4 ++-- src/openrct2/Context.cpp | 2 +- src/openrct2/network/NetworkBase.cpp | 2 +- src/openrct2/world/MapAnimation.cpp | 2 +- src/openrct2/world/MapAnimation.h | 2 +- test/tests/PlayTests.cpp | 2 +- test/tests/S6ImportExportTests.cpp | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/openrct2-ui/title/TitleSequencePlayer.cpp b/src/openrct2-ui/title/TitleSequencePlayer.cpp index 5794b4ac19..14d0a225c1 100644 --- a/src/openrct2-ui/title/TitleSequencePlayer.cpp +++ b/src/openrct2-ui/title/TitleSequencePlayer.cpp @@ -328,7 +328,7 @@ namespace OpenRCT2::Title parkImporter->Import(gameState); ReportProgress(100); - MapAnimation::CreateAll(); + MapAnimation::MarkAllTiles(); } PrepareParkForPlayback(); _initialLoadCommand = false; @@ -384,7 +384,7 @@ namespace OpenRCT2::Title parkImporter->Import(gameState); ReportProgress(100); - MapAnimation::CreateAll(); + MapAnimation::MarkAllTiles(); } PrepareParkForPlayback(); _initialLoadCommand = false; diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index 433a1dbbac..4644136cd1 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -833,7 +833,7 @@ namespace OpenRCT2 gCurrentLoadedPath = path; gFirstTimeSaving = true; GameFixSaveVars(); - MapAnimation::CreateAll(); + MapAnimation::MarkAllTiles(); EntityTweener::Get().Reset(); gScreenAge = 0; gLastAutoSaveUpdate = kAutosavePause; diff --git a/src/openrct2/network/NetworkBase.cpp b/src/openrct2/network/NetworkBase.cpp index d80e797ec0..9595d83b56 100644 --- a/src/openrct2/network/NetworkBase.cpp +++ b/src/openrct2/network/NetworkBase.cpp @@ -2854,7 +2854,7 @@ bool NetworkBase::LoadMap(IStream* stream) importer->Import(gameState); EntityTweener::Get().Reset(); - MapAnimation::CreateAll(); + MapAnimation::MarkAllTiles(); gLastAutoSaveUpdate = kAutosavePause; result = true; diff --git a/src/openrct2/world/MapAnimation.cpp b/src/openrct2/world/MapAnimation.cpp index ac19bf9dd5..e82db414c9 100644 --- a/src/openrct2/world/MapAnimation.cpp +++ b/src/openrct2/world/MapAnimation.cpp @@ -470,7 +470,7 @@ void MapAnimation::CreateTemporary(const CoordsXYZ& coords, const TemporaryType _temporaryMapAnimations.insert(TemporaryMapAnimation{ coords, type }); } -void MapAnimation::CreateAll() +void MapAnimation::MarkAllTiles() { TileElementIterator it; TileElementIteratorBegin(&it); diff --git a/src/openrct2/world/MapAnimation.h b/src/openrct2/world/MapAnimation.h index 4fb00dd354..8a96142018 100644 --- a/src/openrct2/world/MapAnimation.h +++ b/src/openrct2/world/MapAnimation.h @@ -21,7 +21,7 @@ namespace OpenRCT2::MapAnimation void Create(const CoordsXY coords); void CreateTemporary(const CoordsXYZ& coords, const TemporaryType type); - void CreateAll(); + void MarkAllTiles(); void UpdateAll(); void ClearAll(); void ShiftAll(const CoordsXY amount); diff --git a/test/tests/PlayTests.cpp b/test/tests/PlayTests.cpp index 84617109bf..a8d29504f3 100644 --- a/test/tests/PlayTests.cpp +++ b/test/tests/PlayTests.cpp @@ -61,7 +61,7 @@ static std::unique_ptr localStartGame(const std::string& parkPath) ResetAllSpriteQuadrantPlacements(); LoadPalette(); EntityTweener::Get().Reset(); - MapAnimation::CreateAll(); + MapAnimation::MarkAllTiles(); FixInvalidVehicleSpriteSizes(); gGameSpeed = 1; diff --git a/test/tests/S6ImportExportTests.cpp b/test/tests/S6ImportExportTests.cpp index b6a4702fc5..0123e46311 100644 --- a/test/tests/S6ImportExportTests.cpp +++ b/test/tests/S6ImportExportTests.cpp @@ -67,7 +67,7 @@ static void GameInit(bool retainSpatialIndices) ResetAllSpriteQuadrantPlacements(); LoadPalette(); EntityTweener::Get().Reset(); - MapAnimation::CreateAll(); + MapAnimation::MarkAllTiles(); FixInvalidVehicleSpriteSizes(); gGameSpeed = 1;