v0.5.0: fixed fog of war cell updating overriding other updates

This commit is contained in:
Evan Debenham 2017-01-02 01:12:55 -05:00 committed by Evan Debenham
parent 3273092691
commit 1c62066492

View File

@ -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){