From 1c6206649238234cea0ef6142e0ab9d0d4b93994 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 2 Jan 2017 01:12:55 -0500 Subject: [PATCH] v0.5.0: fixed fog of war cell updating overriding other updates --- .../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 6257dfa57..d4f94b3b3 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/tiles/FogOfWar.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/tiles/FogOfWar.java @@ -120,7 +120,7 @@ public class FogOfWar extends Image { } public synchronized void updateFogCell( int cell ){ - updated.set( cell % mapWidth , cell / mapHeight, (cell % mapWidth)+1, (cell / mapHeight)+1 ); + updateFogArea( cell % mapWidth , cell / mapHeight, 1, 1 ); } public synchronized void updateFogArea(int x, int y, int w, int h){