minor tidy-up in CrateAction
This commit is contained in:
@@ -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)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user