Let activities know when they are being run for the first or last time

This commit is contained in:
Oliver Brakmann
2016-11-28 19:41:27 +01:00
parent 85053d8d59
commit 0dfbd46b1f
3 changed files with 38 additions and 1 deletions

View File

@@ -34,7 +34,7 @@ namespace OpenRA.Traits
while (act != null)
{
var prev = act;
act = act.Tick(self);
act = act.TickOuter(self);
var current = Stopwatch.GetTimestamp();
if (current - start > longTickThresholdInStopwatchTicks)
{