Fix SA1414
This commit is contained in:
committed by
Pavel Penev
parent
a167f9680f
commit
14c0d011ea
@@ -30,7 +30,7 @@ namespace OpenRA.Graphics
|
||||
void ResolveSprites(SpriteCache cache);
|
||||
Sprite GetSprite(int frame);
|
||||
Sprite GetSprite(int frame, WAngle facing);
|
||||
(Sprite, WAngle) GetSpriteWithRotation(int frame, WAngle facing);
|
||||
(Sprite Sprite, WAngle Rotation) GetSpriteWithRotation(int frame, WAngle facing);
|
||||
Sprite GetShadow(int frame, WAngle facing);
|
||||
float GetAlpha(int frame);
|
||||
}
|
||||
|
||||
@@ -272,7 +272,7 @@ namespace OpenRA.Traits
|
||||
|
||||
public interface IMapPreviewSignatureInfo : ITraitInfoInterface
|
||||
{
|
||||
void PopulateMapPreviewSignatureCells(Map map, ActorInfo ai, ActorReference s, List<(MPos, Color)> destinationBuffer);
|
||||
void PopulateMapPreviewSignatureCells(Map map, ActorInfo ai, ActorReference s, List<(MPos Uv, Color Color)> destinationBuffer);
|
||||
}
|
||||
|
||||
public interface IOccupySpaceInfo : ITraitInfoInterface
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace OpenRA
|
||||
(Roll, Pitch, Yaw) = QuaternionToEuler(x, y, z, w);
|
||||
}
|
||||
|
||||
static (WAngle, WAngle, WAngle) QuaternionToEuler(int x, int y, int z, int w)
|
||||
static (WAngle Roll, WAngle Pitch, WAngle Yaw) QuaternionToEuler(int x, int y, int z, int w)
|
||||
{
|
||||
// Theoretically 1024 squared, but may differ slightly due to rounding
|
||||
var lsq = x * x + y * y + z * z + w * w;
|
||||
|
||||
Reference in New Issue
Block a user