Use correct language for scan-objects

This commit is contained in:
Ted John committed 2018-05-11 20:39:00 +01:00
1 parent 238079ef7f
commit 7075f6ca25
8 files changed
+38 -9

No files matched your search

+10
View File
@@ -76,6 +76,11 @@ std::string Object::GetString(uint8 index) const
return sz;
}
std::string Object::GetString(sint32 language, uint8 index) const
{
return GetStringTable().GetString(language, index);
}
rct_object_entry Object::GetScgWallsHeader()
{
return Object::CreateHeader("SCGWALLS", 207140231, 3518650219);
@@ -711,6 +716,11 @@ std::string Object::GetName() const
return GetString(OBJ_STRING_ID_NAME);
}
std::string Object::GetName(sint32 language) const
{
return GetString(language, OBJ_STRING_ID_NAME);
}
#ifdef __WARN_SUGGEST_FINAL_METHODS__
#pragma GCC diagnostic pop
#endif