diff options
author | Robert Špalek | 2009-10-26 04:59:52 +0000 |
---|---|---|
committer | Robert Špalek | 2009-10-26 04:59:52 +0000 |
commit | 74da9e5e3bd842b6b5f44a01aff6fd26dee510ec (patch) | |
tree | b1365db3c9e979b013def7da484df11be26c7a1f /engines/draci/script.h | |
parent | 6b61700a7bf9ac66acc01b69f19703196b497320 (diff) | |
download | scummvm-rg350-74da9e5e3bd842b6b5f44a01aff6fd26dee510ec.tar.gz scummvm-rg350-74da9e5e3bd842b6b5f44a01aff6fd26dee510ec.tar.bz2 scummvm-rg350-74da9e5e3bd842b6b5f44a01aff6fd26dee510ec.zip |
Fix Escape in the intro, and switching map and the inventory
svn-id: r45389
Diffstat (limited to 'engines/draci/script.h')
-rw-r--r-- | engines/draci/script.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/draci/script.h b/engines/draci/script.h index 3476dd1116..1073f2c290 100644 --- a/engines/draci/script.h +++ b/engines/draci/script.h @@ -89,11 +89,12 @@ struct GameObject; class Script { public: - Script(DraciEngine *vm) : _vm(vm), _jump(0) { setupCommandList(); }; + Script(DraciEngine *vm) : _vm(vm), _jump(0), _endProgram(false) { setupCommandList(); }; - int run(const GPL2Program &program, uint16 offset); + void run(const GPL2Program &program, uint16 offset); bool testExpression(const GPL2Program &program, uint16 offset) const; - void endCurrentProgram(); + void endCurrentProgram(bool value) { _endProgram = value; } + bool shouldEndProgram() const { return _endProgram; } private: int _jump; |