forked from rosebudai/OpenRCT2-Web
create base scenery object for scenery objects
This commit is contained in:
1 parent
234471c3fc
commit
440c021951
12 files changed
+60
-71
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user