Fix path preview

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

No files matched your search

+1 -1
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;
+1 -1
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