Fix parameters sent to DetectionCircleRenderable.
The parameters had been accidentally reversed in the builder methods.
This commit is contained in:
@@ -45,19 +45,19 @@ namespace OpenRA.Mods.Common.Graphics
|
|||||||
public IRenderable WithPalette(PaletteReference newPalette)
|
public IRenderable WithPalette(PaletteReference newPalette)
|
||||||
{
|
{
|
||||||
return new DetectionCircleRenderable(centerPosition, radius, zOffset,
|
return new DetectionCircleRenderable(centerPosition, radius, zOffset,
|
||||||
trailCount, trailAngle, trailSeparation, color, contrastColor);
|
trailCount, trailSeparation, trailAngle, color, contrastColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IRenderable WithZOffset(int newOffset)
|
public IRenderable WithZOffset(int newOffset)
|
||||||
{
|
{
|
||||||
return new DetectionCircleRenderable(centerPosition, radius, newOffset,
|
return new DetectionCircleRenderable(centerPosition, radius, newOffset,
|
||||||
trailCount, trailAngle, trailSeparation, color, contrastColor);
|
trailCount, trailSeparation, trailAngle, color, contrastColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IRenderable OffsetBy(WVec vec)
|
public IRenderable OffsetBy(WVec vec)
|
||||||
{
|
{
|
||||||
return new DetectionCircleRenderable(centerPosition + vec, radius, zOffset,
|
return new DetectionCircleRenderable(centerPosition + vec, radius, zOffset,
|
||||||
trailCount, trailAngle, trailSeparation, color, contrastColor);
|
trailCount, trailSeparation, trailAngle, color, contrastColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IRenderable AsDecoration() { return this; }
|
public IRenderable AsDecoration() { return this; }
|
||||||
|
|||||||
Reference in New Issue
Block a user