mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-03 04:05:49 +01:00
Fold vehicle name into regular name
This commit is contained in:
@@ -51,13 +51,7 @@ std::string Object::GetOverrideString(uint8 index) const
|
||||
std::string Object::GetString(uint8 index) const
|
||||
{
|
||||
auto sz = GetOverrideString(index);
|
||||
if (sz.empty() && index == OBJ_STRING_ID_VEHICLE_NAME)
|
||||
{
|
||||
// If no vehicle name is specified, fall back to the ride name. This is also required if we fall back
|
||||
// to the .DAT name (which does not contain separate ride and vehicle names).
|
||||
return GetName();
|
||||
}
|
||||
else if (sz.empty())
|
||||
if (sz.empty())
|
||||
{
|
||||
sz = GetStringTable()->GetString(index);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user