Attempt at showing secondary source game

This commit is contained in:
Michael Steenbeek authored and Gymnasiast committed 2018-07-30 21:28:55 +02:00
1 parent 674b2a628a
commit 5ce76e1603
5 files changed
+101 -15

No files matched your search

+11
View File
@@ -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] = {