Remove draw line 2D helper method.

Callers can provide 3D points easily, and this avoids the need to allocate and slow down enumeration via the points.Select(p => new float3(p, 0)) wrapper.
This commit is contained in:
RoosterDragon
2017-12-15 19:22:20 +00:00
committed by reaperrr
parent de38313579
commit a9d1d374b8
4 changed files with 7 additions and 12 deletions

View File

@@ -131,7 +131,7 @@ namespace OpenRA.Mods.Common.Widgets
{
lastX = x;
lastPoint = point;
return origin + new float2(x * xStep, -point * scale);
return origin + new float3(x * xStep, -point * scale, 0);
}), 1, color);
if (lastPoint != 0f)