Fix parameters sent to DetectionCircleRenderable.

The parameters had been accidentally reversed in the builder methods.
This commit is contained in:
RoosterDragon
2015-12-30 04:26:52 +00:00
parent 68fd5dfd58
commit 6156575cd5

View File

@@ -45,19 +45,19 @@ namespace OpenRA.Mods.Common.Graphics
public IRenderable WithPalette(PaletteReference newPalette)
{
return new DetectionCircleRenderable(centerPosition, radius, zOffset,
trailCount, trailAngle, trailSeparation, color, contrastColor);
trailCount, trailSeparation, trailAngle, color, contrastColor);
}
public IRenderable WithZOffset(int newOffset)
{
return new DetectionCircleRenderable(centerPosition, radius, newOffset,
trailCount, trailAngle, trailSeparation, color, contrastColor);
trailCount, trailSeparation, trailAngle, color, contrastColor);
}
public IRenderable OffsetBy(WVec vec)
{
return new DetectionCircleRenderable(centerPosition + vec, radius, zOffset,
trailCount, trailAngle, trailSeparation, color, contrastColor);
trailCount, trailSeparation, trailAngle, color, contrastColor);
}
public IRenderable AsDecoration() { return this; }