reduce coverage of UiOverlay sprites so you can see the building you're placing

This commit is contained in:
Chris Forbes
2010-11-24 20:10:14 +13:00
parent d0466714c8
commit d77563bdb0
2 changed files with 1 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ namespace OpenRA
for (int i = 0; i < Game.CellSize; i++)
for (int j = 0; j < Game.CellSize; j++)
data[i * Game.CellSize + j] = ((i + j) % 4 < 2) ? (byte)0 : paletteIndex;
data[i * Game.CellSize + j] = ((i+j) % 4 != 0) ? (byte)0 : paletteIndex;
return Game.modData.SheetBuilder.Add(data, new Size(Game.CellSize, Game.CellSize));
}

View File

@@ -72,8 +72,6 @@ namespace OpenRA.Mods.RA.Orders
var position = Game.viewport.ViewToWorld(Viewport.LastMousePos).ToInt2();
var topLeft = position - FootprintUtils.AdjustForBuildingSize( BuildingInfo );
var cells = new Dictionary<int2, bool>();
// Linebuild for walls.
// Assumes a 1x1 footprint; weird things will happen for other footprints