Fix #15225: Some scenarios show incorrect name in-game

The S6Importer/SawyerChunkReader correctly decodes the scenario name and description and stores it under the rct_s6_info struct (info.name and info.details)

The problem is that on lines 369-370 the name and description are replaced with the scenario internal name and description - which is sometimes incorrect - specifically a number of scenarios by Frontier in the exapansion packs.
This commit is contained in:
Kane 2021-08-17 05:01:37 +10:00 committed by GitHub
parent 758ad547ce
commit bef853d0ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -366,8 +366,6 @@ public:
// pad_01358842
ImportResearchList();
gMapBaseZ = _s6.map_base_z;
gScenarioName = std::string_view(_s6.scenario_name, sizeof(_s6.scenario_name));
gScenarioDetails = std::string_view(_s6.scenario_description, sizeof(_s6.scenario_description));
gBankLoanInterestRate = _s6.current_interest_rate;
// pad_0135934B
// Preserve compatibility with vanilla RCT2's save format.