v3.2.5: fixed cases where some walls were visible through fog of war

This commit is contained in:
Evan Debenham
2025-09-18 15:30:20 -04:00
parent dad1d8009e
commit 86ff1ab264

View File

@@ -139,7 +139,7 @@ public class WallBlockingTilemap extends Tilemap {
} else { } else {
//Block the side of an internal wall if: //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: //and all of the following are NOT true:
//- the cell has no neighbours on that side //- the cell has no neighbours on that side
//- the top-side neighbour is visible and the side neighbour isn't a wall. //- 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; curr = BLOCK_NONE;
if (!fogHidden(cell - mapWidth) if (!fogHidden(cell - mapWidth)
|| !fogHidden(cell - mapWidth - 1)
|| !fogHidden(cell - mapWidth + 1)
|| !fogHidden(cell) || !fogHidden(cell)
|| !fogHidden(cell + mapWidth)) { || !fogHidden(cell + mapWidth)) {