mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-08 09:37:53 +00:00
alllow (and ignore) explicit references for StopScript and ScriptRunning
This commit is contained in:
parent
aa8c0bccb4
commit
19f4c46fe4
@ -408,6 +408,21 @@ namespace Compiler
|
|||||||
mNextOperand = false;
|
mNextOperand = false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
else if (keyword==Scanner::K_scriptrunning)
|
||||||
|
{
|
||||||
|
start();
|
||||||
|
|
||||||
|
mTokenLoc = loc;
|
||||||
|
parseArguments ("c", scanner);
|
||||||
|
|
||||||
|
Generator::scriptRunning (mCode);
|
||||||
|
mOperands.push_back ('l');
|
||||||
|
|
||||||
|
mExplicit.clear();
|
||||||
|
mRefOp = false;
|
||||||
|
mNextOperand = false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// check for custom extensions
|
// check for custom extensions
|
||||||
if (const Extensions *extensions = getContext().getExtensions())
|
if (const Extensions *extensions = getContext().getExtensions())
|
||||||
|
@ -269,6 +269,13 @@ namespace Compiler
|
|||||||
Generator::startScript (mCode, mLiterals, mExplicit);
|
Generator::startScript (mCode, mLiterals, mExplicit);
|
||||||
mState = EndState;
|
mState = EndState;
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
case Scanner::K_stopscript:
|
||||||
|
|
||||||
|
mExprParser.parseArguments ("c", scanner, mCode);
|
||||||
|
Generator::stopScript (mCode);
|
||||||
|
mState = EndState;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// check for custom extensions
|
// check for custom extensions
|
||||||
|
Loading…
Reference in New Issue
Block a user