minor tidy-up in CrateAction

This commit is contained in:
Chris Forbes
2010-09-05 16:07:35 +12:00
parent 7d912715bc
commit e371159826

View File

@@ -42,11 +42,9 @@ namespace OpenRA.Mods.RA
{ {
Sound.PlayToPlayer(collector.Owner, info.Notification); Sound.PlayToPlayer(collector.Owner, info.Notification);
collector.World.AddFrameEndTask(w =>
{
if (info.Effect != null) if (info.Effect != null)
w.Add(new CrateEffect(collector, info.Effect)); collector.World.AddFrameEndTask(
}); w => w.Add(new CrateEffect(collector, info.Effect)));
} }
} }
} }