mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 17:29:55 +00:00
allow disable as an alias for getDisabled (in most cases)
This commit is contained in:
parent
d6e212a02b
commit
f7ff4fbd51
1 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue