1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 16:24:35 +01:00

Widen progress range for object loading proces

This commit is contained in:
Aaron van Geffen
2024-07-16 18:16:50 +02:00
parent a5054c68d1
commit e645fc7ac4
3 changed files with 6 additions and 6 deletions

View File

@@ -773,7 +773,7 @@ namespace OpenRCT2
SetProgress(0, 100, STR_STRING_M_PERCENT, true);
auto result = parkImporter->LoadFromStream(stream, info.Type == FILE_TYPE::SCENARIO, false, path.c_str());
SetProgress(30, 100, STR_STRING_M_PERCENT, true);
SetProgress(10, 100, STR_STRING_M_PERCENT, true);
// From this point onwards the currently loaded park will be corrupted if loading fails
// so reload the title screen if that happens.
@@ -781,7 +781,7 @@ namespace OpenRCT2
GameUnloadScripts();
_objectManager->LoadObjects(result.RequiredObjects, true);
SetProgress(70, 100, STR_STRING_M_PERCENT, true);
SetProgress(90, 100, STR_STRING_M_PERCENT, true);
// TODO: Have a separate GameState and exchange once loaded.
auto& gameState = ::GetGameState();