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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user