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