From 9cec47c6e6fff9c11e883ff0d4fabf972166b59b Mon Sep 17 00:00:00 2001 From: Hielke Morsink Date: Wed, 16 May 2018 15:03:58 +0200 Subject: [PATCH] Remove duplicated code (#7527) The same check is performed later on right before `edgeStyle` gets used. --- src/openrct2/paint/tile_element/Surface.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/openrct2/paint/tile_element/Surface.cpp b/src/openrct2/paint/tile_element/Surface.cpp index 088fc1ea01..d7b5c238d2 100644 --- a/src/openrct2/paint/tile_element/Surface.cpp +++ b/src/openrct2/paint/tile_element/Surface.cpp @@ -640,9 +640,6 @@ static bool tile_is_inside_clip_view(const tile_descriptor& tile) static void viewport_surface_draw_tile_side_bottom(paint_session * session, enum edge_t edge, uint8 height, uint8 edgeStyle, struct tile_descriptor self, struct tile_descriptor neighbour, bool isWater) { - if (!is_csg_loaded() && edgeStyle >= TERRAIN_EDGE_RCT2_COUNT) - edgeStyle = TERRAIN_EDGE_ROCK; - sint16 cornerHeight1, neighbourCornerHeight1, cornerHeight2, neighbourCornerHeight2; LocationXY8 offset = { 0, 0 };