Remove SceneryInit by using Intent directly instead

This commit is contained in:
Aaron van Geffen committed 2024-07-31 20:12:23 +02:00
1 parent 89ccda19ce
commit b0b048f3d5
3 files changed
+5 -8

No files matched your search

+5 -1
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);
}
}
}
-6
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);
-1
View File
@@ -68,7 +68,6 @@ extern const CoordsXY SceneryQuadrantOffsets[];
extern money64 gClearSceneryCost;
void SceneryInit();
void SceneryUpdateTile(const CoordsXY& sceneryPos);
void ScenerySetDefaultPlacementConfiguration();
void SceneryRemoveGhostToolPlacement();