From 2f836069ae0dd68be263d439dfd68fd1b8d6239d Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 2 Sep 2016 02:20:22 -0400 Subject: [PATCH] v0.4.2: fixed a bug with fog of war --- .../java/com/shatteredpixel/shatteredpixeldungeon/FogOfWar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/FogOfWar.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/FogOfWar.java index a677c3ab7..95e6e7dde 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/FogOfWar.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/FogOfWar.java @@ -104,7 +104,7 @@ public class FogOfWar extends Image { int cell = (pWidth - 1) * i + updating.left; fog.pixels.position((width2) * i + updating.left); for (int j=updating.left; j < updating.right; j++) { - if (cell < pWidth || cell >= Dungeon.level.length()) { + if (cell < pWidth || cell >= Dungeon.level.length() || j == 0 || j == pWidth-1) { fog.pixels.put(INVISIBLE); } else if (visible[cell] && visible[cell - (pWidth - 1)] &&