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:
@@ -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;
|
||||
|
||||
@@ -311,7 +311,7 @@ namespace OpenRCT2::Editor
|
||||
|
||||
ClimateReset();
|
||||
|
||||
News::InitQueue();
|
||||
News::InitQueue(gameState);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace OpenRCT2
|
||||
UpdateConsolidatedPatrolAreas();
|
||||
ResetDate();
|
||||
ClimateReset();
|
||||
News::InitQueue();
|
||||
News::InitQueue(gameState);
|
||||
|
||||
gInMapInitCode = false;
|
||||
|
||||
|
||||
@@ -299,7 +299,7 @@ namespace OpenRCT2::News
|
||||
News::ItemQueue<News::MaxItemsArchive> Archived;
|
||||
};
|
||||
|
||||
void InitQueue();
|
||||
void InitQueue(GameState_t& gameState);
|
||||
|
||||
void UpdateCurrentItem();
|
||||
void CloseCurrentItem();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user