leave a warning for thirdparty scripters

This commit is contained in:
Matthias Mailänder
2015-07-09 21:12:06 +02:00
parent 43ddf14998
commit cae889fb67
2 changed files with 13 additions and 0 deletions

View File

@@ -142,6 +142,7 @@ namespace OpenRA
switch (key.ToString())
{
case "Length": return Length;
case "Range": Game.Debug("WRange.Range is deprecated. Use WDist.Length instead"); return Length;
default: throw new LuaException("WDist does not define a member '{0}'".F(key));
}
}