1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 14:24:33 +01:00

Improve footpath UI

This commit is contained in:
Ted John
2021-04-21 00:19:55 +01:00
parent 978adf541f
commit 00f22958f1
2 changed files with 44 additions and 28 deletions

View File

@@ -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;