diff options
author | Denis Kasak | 2009-07-07 21:24:39 +0000 |
---|---|---|
committer | Denis Kasak | 2009-07-07 21:24:39 +0000 |
commit | bab9293f979f706f9e2334011e4a34cf249ecddb (patch) | |
tree | 74c88a5f5a08f8dcb31a4594ceac1020901754ce /engines/draci | |
parent | 586af0ab4264e022efe84fff8cdf080d580e8432 (diff) | |
download | scummvm-rg350-bab9293f979f706f9e2334011e4a34cf249ecddb.tar.gz scummvm-rg350-bab9293f979f706f9e2334011e4a34cf249ecddb.tar.bz2 scummvm-rg350-bab9293f979f706f9e2334011e4a34cf249ecddb.zip |
Implementend F_Not GPL function.
svn-id: r42245
Diffstat (limited to 'engines/draci')
-rw-r--r-- | engines/draci/script.cpp | 6 | ||||
-rw-r--r-- | engines/draci/script.h | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/engines/draci/script.cpp b/engines/draci/script.cpp index ed6e2b2802..028d4a0b43 100644 --- a/engines/draci/script.cpp +++ b/engines/draci/script.cpp @@ -116,7 +116,7 @@ void Script::setupCommandList() { /** Functions used by the mathematical evaluator */ static const GPL2Function gplFunctions[] = { - { "Not", NULL }, + { "Not", &Script::funcNot }, { "Random", &Script::funcRandom }, { "IsIcoOn", NULL }, { "IsIcoAct", NULL }, @@ -218,6 +218,10 @@ int Script::funcRandom(int n) { return _vm->_rnd.getRandomNumber(n); } +int Script::funcNot(int n) { + return !n; +} + /* GPL commands */ void Script::load(Common::Queue<int> ¶ms) { diff --git a/engines/draci/script.h b/engines/draci/script.h index 16bef9c7ff..89109aebc5 100644 --- a/engines/draci/script.h +++ b/engines/draci/script.h @@ -116,6 +116,7 @@ private: int operMod(int op1, int op2); int funcRandom(int n); + int funcNot(int n); void setupCommandList(); const GPL2Command *findCommand(byte num, byte subnum); |