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

Fix path preview

More work is needed to properly split the paths, but this will do for now.
This commit is contained in:
Gymnasiast
2019-04-01 21:58:57 +02:00
parent 2677ad67fc
commit 9839bb7bba
2 changed files with 2 additions and 2 deletions

View File

@@ -611,7 +611,7 @@ static void window_footpath_paint(rct_window* w, rct_drawpixelinfo* dpi)
}
int32_t image = ConstructionPreviewImages[slope][direction];
int32_t selectedPath = gFootpathSelectedId;
int32_t selectedPath = gFootpathSelectedId + (MAX_PATH_OBJECTS * gFootpathSelectedType);
PathSurfaceEntry* pathType = get_path_surface_entry(selectedPath);
image += pathType->image;

View File

@@ -1571,7 +1571,7 @@ PathSurfaceEntry* PathElement::GetPathEntry() const
if (!IsQueue())
return get_path_surface_entry(GetPathEntryIndex());
else
return get_path_surface_entry(GetPathEntryIndex() + 32);
return get_path_surface_entry(GetPathEntryIndex() + MAX_PATH_OBJECTS);
}
PathRailingsEntry* PathElement::GetRailingEntry() const