v0.5.0: fixed fog of war using level width instead of height
This commit is contained in:
parent
776e49872a
commit
3abae46e1e
|
@ -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();
|
fog.update();
|
||||||
else
|
else
|
||||||
fog.update(updating.top * PIX_PER_TILE, updating.bottom * PIX_PER_TILE);
|
fog.update(updating.top * PIX_PER_TILE, updating.bottom * PIX_PER_TILE);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user