Fix SA1414

This commit is contained in:
RoosterDragon
2023-04-05 19:41:28 +01:00
committed by Pavel Penev
parent a167f9680f
commit 14c0d011ea
10 changed files with 9 additions and 12 deletions

View File

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

View File

@@ -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

View File

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