From 8e9370054d495c8a7dda7ce274536fc3a2d2f322 Mon Sep 17 00:00:00 2001 From: Zimmermann Gyula Date: Thu, 26 Jan 2017 10:58:31 +0100 Subject: [PATCH] Add a disable option to LeavesTrails->StartDelay via negative values. --- OpenRA.Mods.Common/Traits/Render/LeavesTrails.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/Render/LeavesTrails.cs b/OpenRA.Mods.Common/Traits/Render/LeavesTrails.cs index 5f8f9f3974..959ddcedf1 100644 --- a/OpenRA.Mods.Common/Traits/Render/LeavesTrails.cs +++ b/OpenRA.Mods.Common/Traits/Render/LeavesTrails.cs @@ -49,7 +49,8 @@ namespace OpenRA.Mods.Common.Traits.Render [Desc("Delay between trail updates when moving.")] public readonly int MovingInterval = 0; - [Desc("Delay before first trail.")] + [Desc("Delay before first trail.", + "Use negative values for falling back to the *Interval values.")] public readonly int StartDelay = 0; [Desc("Trail spawn positions relative to actor position. (forward, right, up) triples")] @@ -100,7 +101,7 @@ namespace OpenRA.Mods.Common.Traits.Render if ((isMoving && !Info.TrailWhileMoving) || (!isMoving && !Info.TrailWhileStationary)) return; - if (isMoving == wasStationary) + if (isMoving == wasStationary && (Info.StartDelay > -1)) { cachedInterval = Info.StartDelay; ticks = 0;