From d0f2ade778680e6764fb0df44707ac7bb0ed90df Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Thu, 23 Apr 2020 14:35:54 +0200 Subject: [PATCH] Fix #11405: Building path through walls does not always remove them (#11416) --- src/openrct2/actions/FootpathPlaceAction.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/actions/FootpathPlaceAction.hpp b/src/openrct2/actions/FootpathPlaceAction.hpp index 350fc46b49..ec06560f57 100644 --- a/src/openrct2/actions/FootpathPlaceAction.hpp +++ b/src/openrct2/actions/FootpathPlaceAction.hpp @@ -130,7 +130,7 @@ public: auto zLow = _loc.z; auto zHigh = zLow + PATH_CLEARANCE; wall_remove_intersecting_walls( - { _loc, zLow, zHigh + (_slope & TILE_ELEMENT_SURFACE_RAISED_CORNERS_MASK) ? 16 : 0 }, + { _loc, zLow, zHigh + ((_slope & TILE_ELEMENT_SURFACE_RAISED_CORNERS_MASK) ? 16 : 0) }, direction_reverse(_direction)); wall_remove_intersecting_walls( { _loc.x - CoordsDirectionDelta[_direction].x, _loc.y - CoordsDirectionDelta[_direction].y, zLow, zHigh },