From 86ff1ab264c33fa4de5314706e3316784be33310 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 18 Sep 2025 15:30:20 -0400 Subject: [PATCH] v3.2.5: fixed cases where some walls were visible through fog of war --- .../shatteredpixeldungeon/tiles/WallBlockingTilemap.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/tiles/WallBlockingTilemap.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/tiles/WallBlockingTilemap.java index db3fcb51f..76c447fbe 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/tiles/WallBlockingTilemap.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/tiles/WallBlockingTilemap.java @@ -139,7 +139,7 @@ public class WallBlockingTilemap extends Tilemap { } else { //Block the side of an internal wall if: - //- the cell above, below, or the cell itself is visible + //- any cells above, the one directly below, or the cell itself is visible //and all of the following are NOT true: //- the cell has no neighbours on that side //- the top-side neighbour is visible and the side neighbour isn't a wall. @@ -149,6 +149,8 @@ public class WallBlockingTilemap extends Tilemap { curr = BLOCK_NONE; if (!fogHidden(cell - mapWidth) + || !fogHidden(cell - mapWidth - 1) + || !fogHidden(cell - mapWidth + 1) || !fogHidden(cell) || !fogHidden(cell + mapWidth)) {