fixes selection highlight
This commit is contained in:
@@ -69,9 +69,10 @@ namespace OpenRa.Game.Graphics
|
|||||||
DrawSelectionBox(u, Color.Yellow);
|
DrawSelectionBox(u, Color.Yellow);
|
||||||
}
|
}
|
||||||
|
|
||||||
var selectedUnit = world.game.controller.orderGenerator as Actor;
|
var selection = world.game.controller.orderGenerator as UnitOrderGenerator;
|
||||||
if (selectedUnit != null)
|
if (selection != null)
|
||||||
DrawSelectionBox(selectedUnit, Color.White);
|
foreach( var a in selection.selection )
|
||||||
|
DrawSelectionBox(a, Color.White);
|
||||||
|
|
||||||
|
|
||||||
lineRenderer.Flush();
|
lineRenderer.Flush();
|
||||||
|
|||||||
Reference in New Issue
Block a user