1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00

fix highlight object in object selection

This commit is contained in:
Ted John
2016-06-30 21:55:18 +01:00
parent 554d445db4
commit f6d6d93580
28 changed files with 121 additions and 124 deletions

View File

@@ -56,24 +56,24 @@ void StexObject::Unload()
language_free_object_string(_legacyType.details);
}
const utf8 * StexObject::GetName()
const utf8 * StexObject::GetName() const
{
return GetScenarioName();
}
const utf8 * StexObject::GetScenarioName()
const utf8 * StexObject::GetScenarioName() const
{
const utf8 * name = GetStringTable()->GetString(OBJ_STRING_ID_SCENARIO_NAME);
return name != nullptr ? name : "";
}
const utf8 * StexObject::GetScenarioDetails()
const utf8 * StexObject::GetScenarioDetails() const
{
const utf8 * name = GetStringTable()->GetString(OBJ_STRING_ID_SCENARIO_DETAILS);
return name != nullptr ? name : "";
}
const utf8 * StexObject::GetParkName()
const utf8 * StexObject::GetParkName() const
{
const utf8 * name = GetStringTable()->GetString(OBJ_STRING_ID_PARK_NAME);
return name != nullptr ? name : "";