diff --git a/contributors.md b/contributors.md index 3559a194ca..9fca415e19 100644 --- a/contributors.md +++ b/contributors.md @@ -81,6 +81,7 @@ The following people are not part of the development team, but have been contrib * (Xkeeper0) - Improved banner tooltips; multiplayer status in toolbar. * Kevin Strehl (bitman2049) - Tile inspector keybindings * Anton Scharnowski (scrapes) - Added Scenery Scatter Options Window. +* Chad Ian Anderson (pizza2004) - Added New Game option, bug fixes, misc. ## Bug fixes * (halfbro) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 177923a266..ab1708ad67 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -8,6 +8,7 @@ - Feature: [#10189] Make Track Designs work in multiplayer. - Feature: [#10357] Added window for scenery scatter tool, allowing for area and density selection. - Change: [#1164] Use available translations for shortcut key bindings. +- Fix: [#2485] Hide Vertical Faces not applied to the edges of water. - Fix: [#5249] No collision detection when building ride entrance at heights > 85.5m. - Fix: [#7784] Vehicle tab takes 1st car colour instead of tab_vehicle's colour. - Fix: [#7854] Cannot build a custom spiral roller coaster design. diff --git a/src/openrct2/paint/tile_element/Paint.Surface.cpp b/src/openrct2/paint/tile_element/Paint.Surface.cpp index 84d20f5b92..cb693fa8d7 100644 --- a/src/openrct2/paint/tile_element/Paint.Surface.cpp +++ b/src/openrct2/paint/tile_element/Paint.Surface.cpp @@ -1281,18 +1281,21 @@ void surface_paint(paint_session* session, uint8_t direction, uint16_t height, c paint_attach_to_previous_ps(session, SPR_WATER_OVERLAY + image_offset, 0, 0); - // This wasn't in the original, but the code depended on globals that were only set in a different conditional - const uint32_t edgeStyle = tileElement->AsSurface()->GetEdgeStyle(); - // end new code + if (!(session->ViewFlags & VIEWPORT_FLAG_HIDE_VERTICAL)) + { + // This wasn't in the original, but the code depended on globals that were only set in a different conditional + const uint32_t edgeStyle = tileElement->AsSurface()->GetEdgeStyle(); + // end new code - viewport_surface_draw_water_side_top( - session, EDGE_TOPLEFT, waterHeight / 16, edgeStyle, tileDescriptors[0], tileDescriptors[3]); - viewport_surface_draw_water_side_top( - session, EDGE_TOPRIGHT, waterHeight / 16, edgeStyle, tileDescriptors[0], tileDescriptors[4]); - viewport_surface_draw_water_side_bottom( - session, EDGE_BOTTOMLEFT, waterHeight / 16, edgeStyle, tileDescriptors[0], tileDescriptors[1]); - viewport_surface_draw_water_side_bottom( - session, EDGE_BOTTOMRIGHT, waterHeight / 16, edgeStyle, tileDescriptors[0], tileDescriptors[2]); + viewport_surface_draw_water_side_top( + session, EDGE_TOPLEFT, waterHeight / 16, edgeStyle, tileDescriptors[0], tileDescriptors[3]); + viewport_surface_draw_water_side_top( + session, EDGE_TOPRIGHT, waterHeight / 16, edgeStyle, tileDescriptors[0], tileDescriptors[4]); + viewport_surface_draw_water_side_bottom( + session, EDGE_BOTTOMLEFT, waterHeight / 16, edgeStyle, tileDescriptors[0], tileDescriptors[1]); + viewport_surface_draw_water_side_bottom( + session, EDGE_BOTTOMRIGHT, waterHeight / 16, edgeStyle, tileDescriptors[0], tileDescriptors[2]); + } } }