diff options
| -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); | 
