fixes selection highlight

This commit is contained in:
Chris Forbes
2009-10-10 09:35:03 +13:00
parent f9291490fa
commit 4c9bd5c095

View File

@@ -69,9 +69,10 @@ namespace OpenRa.Game.Graphics
DrawSelectionBox(u, Color.Yellow);
}
var selectedUnit = world.game.controller.orderGenerator as Actor;
if (selectedUnit != null)
DrawSelectionBox(selectedUnit, Color.White);
var selection = world.game.controller.orderGenerator as UnitOrderGenerator;
if (selection != null)
foreach( var a in selection.selection )
DrawSelectionBox(a, Color.White);
lineRenderer.Flush();