Merge pull request #6426 from obrakmann/fix6421

Fix a number or bugs wrt shroud/selection interaction in observer mode
This commit is contained in:
Paul Chote
2014-09-13 08:34:22 +12:00
3 changed files with 3 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
Color = p.Color.RGB;
Race = p.Country.Race;
IsSelected = () => p.World.RenderPlayer == p;
OnClick = () => { p.World.RenderPlayer = p; logic.selected = this; };
OnClick = () => { p.World.RenderPlayer = p; logic.selected = this; p.World.Selection.Clear(); };
}
public CameraOption(ObserverShroudSelectorLogic logic, World w, string label, Player p)