and a bit more

This commit is contained in:
Chris Forbes
2009-10-20 20:52:24 +13:00
parent bca1479a66
commit b3aa4bf60b

View File

@@ -28,11 +28,12 @@ namespace OpenRa.Game.Traits
var size = fp.First().Length;
var startIndex = (size == 2) ? SmallBibStart : LargeBibStart;
for (int i = 0; i < 2*size; i++)
Game.map.MapTiles[
self.Location.X + i % size + Game.map.Offset.X,
self.Location.Y + i / size + Game.map.Offset.Y + bibOffset].smudge = (byte)(i + startIndex);
for (int i = 0; i < 2 * size; i++)
{
var p = self.Location + Game.map.Offset + new int2(i % size, i / size + bibOffset);
Game.map.MapTiles[p.X, p.Y].smudge = (byte)(i + startIndex);
}
}
}