mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-29 01:35:06 +01:00
Fix #7084: SC4 scenario completion not marked correctly
This commit is contained in:
@@ -340,7 +340,7 @@ private:
|
||||
|
||||
std::string GetRCT1ScenarioName()
|
||||
{
|
||||
const scenario_index_entry * scenarioEntry = _scenarioRepository->GetByIndex(_s4.scenario_slot_index);
|
||||
const scenario_index_entry * scenarioEntry = _scenarioRepository->GetByInternalName(_s4.scenario_name);
|
||||
return path_get_filename(scenarioEntry->path);
|
||||
}
|
||||
|
||||
|
||||
@@ -389,7 +389,7 @@ public:
|
||||
for (size_t i = 0; i < _scenarios.size(); i++) {
|
||||
const scenario_index_entry * scenario = &_scenarios[i];
|
||||
|
||||
if (scenario->source_game == SCENARIO_SOURCE_OTHER)
|
||||
if (scenario->source_game == SCENARIO_SOURCE_OTHER && scenario->sc_id == SC_UNIDENTIFIED)
|
||||
continue;
|
||||
|
||||
// Note: this is always case insensitive search for cross platform consistency
|
||||
|
||||
Reference in New Issue
Block a user