1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-11 01:52:32 +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);
ContextBroadcastIntent(&intent);
Ui::Windows::WindowScenerySetDefaultPlacementConfiguration();
News::InitQueue();
News::InitQueue(gameState);
LoadPalette();
gScreenAge = 0;
gGamePaused = false;

View File

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

View File

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

View File

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

View File

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