Use sourceGame parameter in JSON files instead of originalId

This commit is contained in:
Michael Steenbeek authored and Gymnasiast committed 2018-07-30 21:39:27 +02:00
1 parent 71bd110526
commit 2a64ec7aff
13 files changed
+50 -27

No files matched your search

+4 -4
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);
}