1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 13:03:11 +01:00

Use sourceGame parameter in JSON files instead of originalId

This commit is contained in:
Michael Steenbeek
2018-07-03 13:46:45 +02:00
committed by Gymnasiast
parent 71bd110526
commit 2a64ec7aff
13 changed files with 50 additions and 27 deletions

View File

@@ -218,9 +218,9 @@ public:
// loaded RCT1 and RCT2 save files.
}
static rct_string_id GetObjectSourceGameString(const rct_object_entry* entry)
static rct_string_id GetObjectSourceGameString(const uint8_t sourceGame)
{
switch (object_entry_get_source_game(entry))
switch (sourceGame)
{
case OBJECT_SOURCE_RCT1:
return STR_SCENARIO_CATEGORY_RCT1;
@@ -675,7 +675,7 @@ void object_manager_unload_all_objects()
}
}
rct_string_id object_manager_get_source_game_string(const rct_object_entry* entry)
rct_string_id object_manager_get_source_game_string(const uint8_t sourceGame)
{
return ObjectManager::GetObjectSourceGameString(entry);
return ObjectManager::GetObjectSourceGameString(sourceGame);
}