Do not render trails under fog by default.

Exposed a boolean for rendering a SpriteEffect under fog. Exposed a setting in LeavesTrails for this boolean, defaulting to false.
This commit is contained in:
Zimmermann Gyula
2016-02-14 15:18:53 +01:00
parent 2debda926a
commit f37e59e116
3 changed files with 14 additions and 4 deletions

View File

@@ -196,7 +196,7 @@ namespace OpenRA.Widgets
else if (o.TargetLocation != CPos.Zero)
{
var pos = world.Map.CenterOfCell(cell);
world.AddFrameEndTask(w => w.Add(new SpriteEffect(pos, world, "moveflsh", "idle", "moveflash", true)));
world.AddFrameEndTask(w => w.Add(new SpriteEffect(pos, world, "moveflsh", "idle", "moveflash", true, true)));
flashed = true;
}
}