v0.5.0: fixed fog of war using level width instead of height

This commit is contained in:
Evan Debenham 2017-01-02 01:24:09 -05:00 committed by Evan Debenham
parent 776e49872a
commit 3abae46e1e

View File

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