mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 14:24:33 +01:00
Improve footpath UI
This commit is contained in:
@@ -20,15 +20,15 @@ void FootpathSurfaceObject::Load()
|
||||
auto numImages = GetImageTable().GetCount();
|
||||
if (numImages != 0)
|
||||
{
|
||||
BaseImageId = gfx_object_allocate_images(GetImageTable().GetImages(), GetImageTable().GetCount());
|
||||
PreviewImageId = BaseImageId + 72;
|
||||
PreviewImageId = gfx_object_allocate_images(GetImageTable().GetImages(), GetImageTable().GetCount());
|
||||
BaseImageId = PreviewImageId + 1;
|
||||
}
|
||||
}
|
||||
|
||||
void FootpathSurfaceObject::Unload()
|
||||
{
|
||||
language_free_object_string(NameStringId);
|
||||
gfx_object_free_images(BaseImageId, GetImageTable().GetCount());
|
||||
gfx_object_free_images(PreviewImageId, GetImageTable().GetCount());
|
||||
|
||||
NameStringId = 0;
|
||||
PreviewImageId = 0;
|
||||
|
||||
Reference in New Issue
Block a user