1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 21:43:06 +01:00

Remove SceneryInit by using Intent directly instead

This commit is contained in:
Aaron van Geffen
2024-07-31 15:40:59 +02:00
parent 89ccda19ce
commit b0b048f3d5
3 changed files with 5 additions and 8 deletions

View File

@@ -9,6 +9,7 @@
#include "Research.h"
#include "../Context.h"
#include "../Date.h"
#include "../Diagnostic.h"
#include "../Game.h"
@@ -34,6 +35,7 @@
#include "../ride/TrackData.h"
#include "../scenario/Scenario.h"
#include "../util/Util.h"
#include "../windows/Intent.h"
#include "../world/Park.h"
#include "../world/Scenery.h"
#include "Finance.h"
@@ -296,7 +298,9 @@ void ResearchFinishItem(const ResearchItem& researchItem)
}
ResearchInvalidateRelatedWindows();
SceneryInit();
auto intent = Intent(INTENT_ACTION_INIT_SCENERY);
ContextBroadcastIntent(&intent);
}
}
}

View File

@@ -411,12 +411,6 @@ bool SceneryToolIsActive()
return false;
}
void SceneryInit()
{
auto intent = Intent(INTENT_ACTION_INIT_SCENERY);
ContextBroadcastIntent(&intent);
}
void ScenerySetDefaultPlacementConfiguration()
{
auto intent = Intent(INTENT_ACTION_SET_DEFAULT_SCENERY_CONFIG);

View File

@@ -68,7 +68,6 @@ extern const CoordsXY SceneryQuadrantOffsets[];
extern money64 gClearSceneryCost;
void SceneryInit();
void SceneryUpdateTile(const CoordsXY& sceneryPos);
void ScenerySetDefaultPlacementConfiguration();
void SceneryRemoveGhostToolPlacement();