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); 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();