Fix IDE0002
This commit is contained in:
committed by
Pavel Penev
parent
8b4500146f
commit
b0dca05e50
@@ -129,6 +129,9 @@ dotnet_style_require_accessibility_modifiers = omit_if_default:warning
|
|||||||
# Simplify name.
|
# Simplify name.
|
||||||
dotnet_diagnostic.IDE0001.severity = warning
|
dotnet_diagnostic.IDE0001.severity = warning
|
||||||
|
|
||||||
|
# Simplify member access.
|
||||||
|
dotnet_diagnostic.IDE0002.severity = warning
|
||||||
|
|
||||||
# use 'var' instead of explicit type
|
# use 'var' instead of explicit type
|
||||||
dotnet_diagnostic.IDE0007.severity = warning
|
dotnet_diagnostic.IDE0007.severity = warning
|
||||||
|
|
||||||
|
|||||||
@@ -266,7 +266,7 @@ namespace OpenRA.Graphics
|
|||||||
if (rotation == 0f)
|
if (rotation == 0f)
|
||||||
return new Rectangle((int)offset.X, (int)offset.Y, (int)size.X, (int)size.Y);
|
return new Rectangle((int)offset.X, (int)offset.Y, (int)size.X, (int)size.Y);
|
||||||
|
|
||||||
var rotatedQuad = Util.RotateQuad(offset, size, rotation);
|
var rotatedQuad = RotateQuad(offset, size, rotation);
|
||||||
var minX = rotatedQuad[0].X;
|
var minX = rotatedQuad[0].X;
|
||||||
var maxX = rotatedQuad[0].X;
|
var maxX = rotatedQuad[0].X;
|
||||||
var minY = rotatedQuad[0].Y;
|
var minY = rotatedQuad[0].Y;
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
// Move to CruiseAltitude, if not already there
|
// Move to CruiseAltitude, if not already there
|
||||||
if (dat != aircraft.Info.CruiseAltitude)
|
if (dat != aircraft.Info.CruiseAltitude)
|
||||||
{
|
{
|
||||||
Fly.VerticalTakeOffOrLandTick(self, aircraft, aircraft.Facing, aircraft.Info.CruiseAltitude);
|
VerticalTakeOffOrLandTick(self, aircraft, aircraft.Facing, aircraft.Info.CruiseAltitude);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user