Remove Selectable boolean from Selectable trait
Add work-around for ta/td bridge huts since they need actor Bounds to be targetable by C4/engineer repair.
This commit is contained in:
@@ -190,12 +190,8 @@ namespace OpenRA.Graphics
|
||||
|
||||
public void DrawRollover(Actor unit)
|
||||
{
|
||||
var selectable = unit.TraitOrDefault<Selectable>();
|
||||
if (selectable != null)
|
||||
{
|
||||
if (selectable.Info.Selectable)
|
||||
new SelectionBarsRenderable(unit).Render(this);
|
||||
}
|
||||
if (unit.HasTrait<Selectable>())
|
||||
new SelectionBarsRenderable(unit).Render(this);
|
||||
}
|
||||
|
||||
public void DrawRangeCircle(WPos pos, WRange range, Color c)
|
||||
|
||||
Reference in New Issue
Block a user