Some parts of some buildings are pathable.

- not handling WEAP/FIX yet; that's special-case logic.
This commit is contained in:
Bob
2009-10-13 19:11:32 +13:00
parent c6e739d162
commit 9ba0a632e2
5 changed files with 40 additions and 21 deletions

View File

@@ -6,7 +6,7 @@ using System.Text;
using IjwFramework.Types;
using OpenRa.FileFormats;
using OpenRa.Game.GameRules;
using OpenRa.Game.Graphics;
using OpenRa.Game.Graphics;
using System.Drawing;
namespace OpenRa.Game
@@ -142,16 +142,16 @@ namespace OpenRa.Game
.Select( x => x.Order( this, game, xy ) )
.Where( x => x != null )
.FirstOrDefault();
}
public RectangleF Bounds
{
get
{
var size = SelectedSize;
var loc = CenterLocation - 0.5f * size;
return new RectangleF(loc.X, loc.Y, size.X, size.Y);
}
}
public RectangleF Bounds
{
get
{
var size = SelectedSize;
var loc = CenterLocation - 0.5f * size;
return new RectangleF(loc.X, loc.Y, size.X, size.Y);
}
}
}