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

@@ -94,7 +94,11 @@ namespace OpenRA
public void Tick()
{
var wasIdle = IsIdle;
currentActivity = Traits.Util.RunActivity(this, currentActivity);
if (!wasIdle && IsIdle)
foreach (var n in TraitsImplementing<INotifyBecomingIdle>())
n.OnBecomingIdle(this);
}
public bool IsIdle