mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-04 13:42:55 +01:00
Use correct language for scan-objects
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user