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/script.cpp | |
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/script.cpp')
-rw-r--r-- | engines/draci/script.cpp | 6 |
1 files changed, 5 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) { |