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

Fix #18174: Height marks on land do not appear

This commit is contained in:
Meehoi
2022-10-04 02:51:36 +07:00
committed by GitHub
parent 9e1937d144
commit 34cb2a96f1

View File

@@ -1088,11 +1088,11 @@ void PaintSurface(paint_session& session, uint8_t direction, uint16_t height, co
int32_t surfaceHeight = tile_element_height({ x + 16, y + 16 });
int32_t dx = surfaceHeight + 3;
int32_t image_id = (SPR_HEIGHT_MARKER_BASE + dx / 16) | 0x20780000;
int32_t image_id = (SPR_HEIGHT_MARKER_BASE + dx / 16);
image_id += get_height_marker_offset();
image_id -= gMapBaseZ;
PaintAddImageAsParent(session, ImageId(image_id), { 16, 16, surfaceHeight }, { 1, 1, 0 });
PaintAddImageAsParent(session, ImageId(image_id, COLOUR_OLIVE_GREEN), { 16, 16, surfaceHeight }, { 1, 1, 0 });
}
bool has_surface = false;