Merge pull request #12341 from reaperrr/no-overlay-delayedaction

Remove hardcoded buildComplete delay in some overlays
This commit is contained in:
reaperrr
2016-11-13 13:24:42 +01:00
committed by GitHub
3 changed files with 3 additions and 6 deletions

View File

@@ -67,8 +67,7 @@ namespace OpenRA.Mods.Common.Traits.Render
void INotifyBuildComplete.BuildingComplete(Actor self)
{
self.World.AddFrameEndTask(w => w.Add(new DelayedAction(120, () =>
buildComplete = true)));
buildComplete = true;
}
void INotifySold.Sold(Actor self) { }

View File

@@ -61,8 +61,7 @@ namespace OpenRA.Mods.Common.Traits.Render
void INotifyBuildComplete.BuildingComplete(Actor self)
{
self.World.AddFrameEndTask(w => w.Add(new DelayedAction(120, () =>
buildComplete = true)));
buildComplete = true;
}
void INotifySold.Sold(Actor self) { }

View File

@@ -71,8 +71,7 @@ namespace OpenRA.Mods.D2k.Traits.Render
void INotifyBuildComplete.BuildingComplete(Actor self)
{
self.World.AddFrameEndTask(w => w.Add(new DelayedAction(120, () =>
buildComplete = true)));
buildComplete = true;
}
void INotifySold.Sold(Actor self) { }