Fixes issues with support powers and adds property to all IOrderGenerator classes to determine priority over selection in the left-click order scheme.

This commit is contained in:
Bynnar18
2015-02-28 15:49:15 -06:00
parent 7b46b76329
commit 0abe8f9b2b
17 changed files with 41 additions and 7 deletions

View File

@@ -34,6 +34,10 @@ namespace OpenRA.Mods.Common.Orders
producer = queue.Actor;
building = name;
// Clear selection if using Left-Click Orders
if (Game.Settings.Game.UseClassicMouseStyle)
producer.World.Selection.Clear();
var map = producer.World.Map;
var tileset = producer.World.TileSet.Id.ToLowerInvariant();
buildingInfo = map.Rules.Actors[building].Traits.Get<BuildingInfo>();