Add lint check for invalid projectile angles

Emits error if
- angle exceeds 255 or -255
- minimum launch angle exceeds maximum launch angle
This commit is contained in:
reaperrr
2016-10-16 01:14:04 +02:00
parent 20cd2aa4ab
commit efd54f1c65
3 changed files with 72 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ namespace OpenRA
public struct WAngle : IEquatable<WAngle>
{
public readonly int Angle;
public int AngleSquared { get { return (int)Angle * Angle; } }
public WAngle(int a)
{