1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 09:14:58 +01:00

Rework path surface and railings descriptor handling

This commit is contained in:
Gymnasiast
2021-09-05 18:44:43 +02:00
parent 2282f24404
commit 4cc717ccdb
27 changed files with 250 additions and 237 deletions

View File

@@ -296,7 +296,7 @@ static void track_design_save_add_wall(const CoordsXY& loc, WallElement* wallEle
static void track_design_save_add_footpath(const CoordsXY& loc, PathElement* pathElement)
{
int32_t entryType = pathElement->GetSurfaceEntryIndex();
int32_t entryType = pathElement->GetLegacyPathEntryIndex();
auto entry = object_entry_get_object(ObjectType::Paths, entryType);
uint8_t flags = 0;
@@ -473,7 +473,7 @@ static void track_design_save_remove_wall(const CoordsXY& loc, WallElement* wall
static void track_design_save_remove_footpath(const CoordsXY& loc, PathElement* pathElement)
{
int32_t entryType = pathElement->GetSurfaceEntryIndex();
int32_t entryType = pathElement->GetLegacyPathEntryIndex();
auto entry = object_entry_get_object(ObjectType::Paths, entryType);
uint8_t flags = 0;