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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -68,7 +68,6 @@ extern const CoordsXY SceneryQuadrantOffsets[];
|
||||
|
||||
extern money64 gClearSceneryCost;
|
||||
|
||||
void SceneryInit();
|
||||
void SceneryUpdateTile(const CoordsXY& sceneryPos);
|
||||
void ScenerySetDefaultPlacementConfiguration();
|
||||
void SceneryRemoveGhostToolPlacement();
|
||||
|
||||
Reference in New Issue
Block a user