quick hack to fix aircraft fail in prev
This commit is contained in:
@@ -131,9 +131,12 @@ namespace OpenRA.Traits
|
|||||||
{
|
{
|
||||||
var ios = a.TraitOrDefault<IOccupySpace>();
|
var ios = a.TraitOrDefault<IOccupySpace>();
|
||||||
if (ios != null)
|
if (ios != null)
|
||||||
return ios.OccupiedCells();
|
{
|
||||||
else
|
var cells = ios.OccupiedCells();
|
||||||
return new[] { (1f / Game.CellSize * a.CenterLocation).ToInt2() };
|
if (cells.Any()) return cells;
|
||||||
|
}
|
||||||
|
|
||||||
|
return new[] { (1f / Game.CellSize * a.CenterLocation).ToInt2() };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user