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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user