Fix contrail using the wrong colors

This commit is contained in:
Gustas
2022-10-06 14:11:46 +03:00
parent 43094742fb
commit f3e44094a1
4 changed files with 4 additions and 4 deletions

View File

@@ -82,7 +82,7 @@ namespace OpenRA.Mods.Common.Graphics
for (var i = 1; i < renderLength; i++)
{
var j = next - skip - 1 - i;
var nextColor = Exts.ColorLerp(i * 1f / (renderLength - 1), startcolor, endcolor);
var nextColor = Exts.ColorLerp(i / (renderLength - 1f), startcolor, endcolor);
var nextX = 0L;
var nextY = 0L;