remove conditional compile left-over junk
This commit is contained in:
@@ -143,22 +143,14 @@ namespace OpenRA
|
|||||||
var si = Info.Traits.GetOrDefault<SelectableInfo>();
|
var si = Info.Traits.GetOrDefault<SelectableInfo>();
|
||||||
if (si != null && si.Bounds != null && si.Bounds.Length > 2)
|
if (si != null && si.Bounds != null && si.Bounds.Length > 2)
|
||||||
{
|
{
|
||||||
#if true
|
|
||||||
loc += new PVecInt(si.Bounds[2], si.Bounds[3]);
|
loc += new PVecInt(si.Bounds[2], si.Bounds[3]);
|
||||||
#else
|
|
||||||
loc.X += si.Bounds[2];
|
|
||||||
loc.Y += si.Bounds[3];
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var move = Move.Value;
|
var move = Move.Value;
|
||||||
if (move != null)
|
if (move != null)
|
||||||
{
|
{
|
||||||
#if true
|
|
||||||
loc -= new PVecInt(0, move.Altitude);
|
loc -= new PVecInt(0, move.Altitude);
|
||||||
#else
|
|
||||||
loc.Y -= move.Altitude;
|
|
||||||
#endif
|
|
||||||
if (useAltitude)
|
if (useAltitude)
|
||||||
size = new PVecInt(size.X, size.Y + move.Altitude);
|
size = new PVecInt(size.X, size.Y + move.Altitude);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user