1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-13 02:52:35 +01:00

Modify News::InitQueue to take GameState_t

This commit is contained in:
Gymnasiast
2025-03-18 23:25:25 +01:00
parent 79d4de341b
commit 79514bbb79
5 changed files with 5 additions and 5 deletions

View File

@@ -438,7 +438,7 @@ namespace OpenRCT2::Title
auto intent = Intent(INTENT_ACTION_REFRESH_NEW_RIDES); auto intent = Intent(INTENT_ACTION_REFRESH_NEW_RIDES);
ContextBroadcastIntent(&intent); ContextBroadcastIntent(&intent);
Ui::Windows::WindowScenerySetDefaultPlacementConfiguration(); Ui::Windows::WindowScenerySetDefaultPlacementConfiguration();
News::InitQueue(); News::InitQueue(gameState);
LoadPalette(); LoadPalette();
gScreenAge = 0; gScreenAge = 0;
gGamePaused = false; gGamePaused = false;

View File

@@ -311,7 +311,7 @@ namespace OpenRCT2::Editor
ClimateReset(); ClimateReset();
News::InitQueue(); News::InitQueue(gameState);
} }
/** /**

View File

@@ -65,7 +65,7 @@ namespace OpenRCT2
UpdateConsolidatedPatrolAreas(); UpdateConsolidatedPatrolAreas();
ResetDate(); ResetDate();
ClimateReset(); ClimateReset();
News::InitQueue(); News::InitQueue(gameState);
gInMapInitCode = false; gInMapInitCode = false;

View File

@@ -299,7 +299,7 @@ namespace OpenRCT2::News
News::ItemQueue<News::MaxItemsArchive> Archived; News::ItemQueue<News::MaxItemsArchive> Archived;
}; };
void InitQueue(); void InitQueue(GameState_t& gameState);
void UpdateCurrentItem(); void UpdateCurrentItem();
void CloseCurrentItem(); void CloseCurrentItem();

View File

@@ -103,7 +103,7 @@ void ScenarioReset(GameState_t& gameState)
auto intent = Intent(INTENT_ACTION_SET_DEFAULT_SCENERY_CONFIG); auto intent = Intent(INTENT_ACTION_SET_DEFAULT_SCENERY_CONFIG);
ContextBroadcastIntent(&intent); ContextBroadcastIntent(&intent);
News::InitQueue(); News::InitQueue(gameState);
gameState.Park.Rating = Park::CalculateParkRating(); gameState.Park.Rating = Park::CalculateParkRating();
gameState.Park.Value = Park::CalculateParkValue(); gameState.Park.Value = Park::CalculateParkValue();