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

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