Merge pull request #10336 from RoosterDragon/fix-param-order

Fix parameters sent to DetectionCircleRenderable.
This commit is contained in:
Matthias Mailänder
2015-12-30 09:13:37 +01:00

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; }