From bab9293f979f706f9e2334011e4a34cf249ecddb Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Tue, 7 Jul 2009 21:24:39 +0000 Subject: Implementend F_Not GPL function. svn-id: r42245 --- engines/draci/script.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engines/draci/script.cpp') 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 ¶ms) { -- cgit v1.2.3