Removed an overload of Footprint.Tiles (see also next commit)

This commit is contained in:
Bob
2010-01-18 14:14:15 +13:00
parent c62944e492
commit aac9a01c49
3 changed files with 4 additions and 7 deletions

View File

@@ -46,9 +46,10 @@ namespace OpenRa
public void DrawBuildingGrid( string name, BuildingInfo bi )
{
var position = Game.controller.MousePosition.ToInt2();
var topLeft = position - Footprint.AdjustForBuildingSize( bi );
var isCloseEnough = Game.world.IsCloseEnoughToBase(Game.LocalPlayer, name, bi, position);
foreach( var t in Footprint.Tiles( name, bi, position ) )
foreach( var t in Footprint.Tiles( name, bi, topLeft, false ) )
spriteRenderer.DrawSprite( ( isCloseEnough && Game.world.IsCellBuildable( t, bi.WaterBound
? UnitMovementType.Float : UnitMovementType.Wheel ) && !Game.world.Map.ContainsResource( t ) )
? buildOk : buildBlocked, Game.CellSize * t, 0 );