1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 15:29:55 +00:00

allow disable as an alias for getDisabled (in most cases)

This commit is contained in:
Marc Zinnschlag 2014-02-13 15:31:07 +01:00
parent d6e212a02b
commit f7ff4fbd51

View file

@ -366,7 +366,8 @@ namespace Compiler
{
if (mRefOp && mNextOperand)
{
if (keyword==Scanner::K_getdisabled)
if (keyword==Scanner::K_getdisabled ||
keyword==Scanner::K_disable) /// \todo add option to disable this
{
start();
@ -509,7 +510,8 @@ namespace Compiler
mNextOperand = false;
return true;
}
else if (keyword==Scanner::K_getdisabled)
else if (keyword==Scanner::K_getdisabled ||
keyword==Scanner::K_disable) /// \todo add option to disable this
{
start();