Remove deprecated integer facing handling for Lua

This commit is contained in:
abcdefg30
2022-05-11 13:00:55 +02:00
committed by atlimit8
parent 660130653c
commit c827d1a4ab
3 changed files with 0 additions and 59 deletions

View File

@@ -224,12 +224,6 @@ namespace OpenRA
if (!left.TryGetClrValue(out WAngle a))
throw new LuaException($"Attempted to call WAngle.Add(WAngle, WAngle) with invalid arguments ({left.WrappedClrType().Name}, {right.WrappedClrType().Name})");
if (right.TryGetClrValue(out int c))
{
TextNotificationsManager.Debug("Support for facing calculations mixing Angle with integers is deprecated. Make sure all facing calculations use Angle");
return new LuaCustomClrObject(a + FromFacing(c));
}
if (right.TryGetClrValue(out WAngle b))
return new LuaCustomClrObject(a + b);
@@ -241,12 +235,6 @@ namespace OpenRA
if (!left.TryGetClrValue(out WAngle a))
throw new LuaException($"Attempted to call WAngle.Subtract(WAngle, WAngle) with invalid arguments ({left.WrappedClrType().Name}, {right.WrappedClrType().Name})");
if (right.TryGetClrValue(out int c))
{
TextNotificationsManager.Debug("Support for facing calculations mixing Angle with integers is deprecated. Make sure all facing calculations use Angle");
return new LuaCustomClrObject(a - FromFacing(c));
}
if (right.TryGetClrValue(out WAngle b))
return new LuaCustomClrObject(a - b);