Fixes order lines not being shown after reselect once their lifetime has expired.

Adds INotifyBecomingIdle.
This commit is contained in:
Pizzaoverhead
2014-02-15 19:17:21 +00:00
parent 9a8c9d1985
commit ed6147ce0b
5 changed files with 25 additions and 1 deletions

View File

@@ -22,6 +22,8 @@ namespace OpenRA
public void Add(World w, Actor a)
{
actors.Add(a);
foreach (var sel in a.TraitsImplementing<INotifySelected>())
sel.Selected(a);
foreach (var ns in w.WorldActor.TraitsImplementing<INotifySelection>())
ns.SelectionChanged();
}
@@ -47,6 +49,9 @@ namespace OpenRA
if (voicedUnit != null)
Sound.PlayVoice("Select", voicedUnit, voicedUnit.Owner.Country.Race);
foreach (var a in newSelection)
foreach (var sel in a.TraitsImplementing<INotifySelected>())
sel.Selected(a);
foreach (var ns in world.WorldActor.TraitsImplementing<INotifySelection>())
ns.SelectionChanged();
}