1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 03:53:07 +01:00

create base scenery object for scenery objects

This commit is contained in:
Ted John
2016-07-09 19:16:38 +01:00
parent 234471c3fc
commit 440c021951
12 changed files with 60 additions and 71 deletions

View File

@@ -39,7 +39,8 @@ void FootpathItemObject::ReadLegacy(IReadObjectContext * context, IStream * stre
GetStringTable()->Read(context, stream, OBJ_STRING_ID_NAME);
_sceneryTabEntry = stream->ReadValue<rct_object_entry>();
rct_object_entry sgEntry = stream->ReadValue<rct_object_entry>();
SetPrimarySceneryGroup(&sgEntry);
GetImageTable()->Read(context, stream);
@@ -56,14 +57,6 @@ void FootpathItemObject::Load()
_legacyType.image = gfx_object_allocate_images(GetImageTable()->GetImages(), GetImageTable()->GetCount());
_legacyType.path_bit.scenery_tab_id = 0xFF;
if ((_sceneryTabEntry.flags & 0xFF) != 0xFF)
{
uint8 entryType, entryIndex;
if (find_object_in_entry_group(&_sceneryTabEntry, &entryType, &entryIndex))
{
_legacyType.path_bit.scenery_tab_id = entryIndex;
}
}
}
void FootpathItemObject::Unload()