From 3abae46e1edea97a33bffcbf674e3a5493b7fb7d Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 2 Jan 2017 01:24:09 -0500 Subject: [PATCH] v0.5.0: fixed fog of war using level width instead of height --- .../shatteredpixel/shatteredpixeldungeon/tiles/FogOfWar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/tiles/FogOfWar.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/tiles/FogOfWar.java index d4f94b3b3..5c80cb2d6 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/tiles/FogOfWar.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/tiles/FogOfWar.java @@ -242,7 +242,7 @@ public class FogOfWar extends Image { } } - if (updating.width() == mapWidth && updating.height() == mapWidth) + if (updating.width() == mapWidth && updating.height() == mapHeight) fog.update(); else fog.update(updating.top * PIX_PER_TILE, updating.bottom * PIX_PER_TILE);