v3.2.5: fixed cases where some walls were visible through fog of war
This commit is contained in:
@@ -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)) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user