mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Attempt at showing secondary source game
This commit is contained in:
committed by
Gymnasiast
parent
674b2a628a
commit
5ce76e1603
@@ -24,6 +24,7 @@ Object::Object(const rct_object_entry& entry)
|
||||
char name[DAT_NAME_LENGTH + 1] = { 0 };
|
||||
std::copy_n(entry.name, DAT_NAME_LENGTH, name);
|
||||
_identifier = String::Duplicate(name);
|
||||
_secondSourceGame = OBJECT_SOURCE_CUSTOM;
|
||||
|
||||
if (IsOpenRCT2OfficialObject())
|
||||
{
|
||||
@@ -90,6 +91,16 @@ void Object::SetSourceGame(const uint8_t sourceGame)
|
||||
_objectEntry.flags |= (sourceGame << 4);*/
|
||||
}
|
||||
|
||||
const uint8_t Object::GetSecondSourceGame()
|
||||
{
|
||||
return _secondSourceGame;
|
||||
}
|
||||
|
||||
void Object::SetSecondSourceGame(const uint8_t sourceGame)
|
||||
{
|
||||
_secondSourceGame = sourceGame;
|
||||
}
|
||||
|
||||
bool Object::IsOpenRCT2OfficialObject()
|
||||
{
|
||||
static const char _openRCT2OfficialObjects[][9] = {
|
||||
|
||||
Reference in New Issue
Block a user