Fix a wrong check in LeavesTrails.

This commit is contained in:
Zimmermann Gyula
2016-07-08 01:24:49 +02:00
parent 71d6471df7
commit ad0c38d352

View File

@@ -98,8 +98,11 @@ namespace OpenRA.Mods.Common.Traits.Render
if ((isMoving && !Info.TrailWhileMoving) || (!isMoving && !Info.TrailWhileStationary))
return;
if (isMoving && wasStationary)
if (isMoving == wasStationary)
{
cachedInterval = Info.StartDelay;
ticks = 0;
}
if (++ticks >= cachedInterval)
{
@@ -125,7 +128,7 @@ namespace OpenRA.Mods.Common.Traits.Render
cachedFacing = facing != null ? facing.Facing : 0;
ticks = 0;
cachedInterval = isMoving && !wasStationary ? Info.MovingInterval : Info.StationaryInterval;
cachedInterval = isMoving ? Info.MovingInterval : Info.StationaryInterval;
}
}