mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 20:29:57 +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 (mRefOp && mNextOperand)
|
||||||
{
|
{
|
||||||
if (keyword==Scanner::K_getdisabled)
|
if (keyword==Scanner::K_getdisabled ||
|
||||||
|
keyword==Scanner::K_disable) /// \todo add option to disable this
|
||||||
{
|
{
|
||||||
start();
|
start();
|
||||||
|
|
||||||
|
@ -509,7 +510,8 @@ namespace Compiler
|
||||||
mNextOperand = false;
|
mNextOperand = false;
|
||||||
return true;
|
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();
|
start();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue