diff options
author | uruk | 2014-05-23 13:06:50 +0200 |
---|---|---|
committer | uruk | 2014-05-23 13:06:50 +0200 |
commit | e2ca4382d86ac869f8628441924cc7f19a0b7b4e (patch) | |
tree | 17a7c06186b1224765de2f1ada87a62a98447a00 | |
parent | 4dcfe4d7853cc59b0c93f43115dc13d17470386f (diff) | |
download | scummvm-rg350-e2ca4382d86ac869f8628441924cc7f19a0b7b4e.tar.gz scummvm-rg350-e2ca4382d86ac869f8628441924cc7f19a0b7b4e.tar.bz2 scummvm-rg350-e2ca4382d86ac869f8628441924cc7f19a0b7b4e.zip |
CGE2: Implement CommandHandler::idle().
-rw-r--r-- | engines/cge2/cge2.cpp | 1 | ||||
-rw-r--r-- | engines/cge2/cge2.h | 1 | ||||
-rw-r--r-- | engines/cge2/snail.cpp | 3 |
3 files changed, 3 insertions, 2 deletions
diff --git a/engines/cge2/cge2.cpp b/engines/cge2/cge2.cpp index 89ec3b0b42..2f9cf1a7a3 100644 --- a/engines/cge2/cge2.cpp +++ b/engines/cge2/cge2.cpp @@ -72,6 +72,7 @@ CGE2Engine::CGE2Engine(OSystem *syst, const ADGameDescription *gameDescription) _dark = false; _lastFrame = 0; _lastTick = 0; + _waitRef = 0; } void CGE2Engine::init() { diff --git a/engines/cge2/cge2.h b/engines/cge2/cge2.h index 2ffc2125e5..f1982f7a04 100644 --- a/engines/cge2/cge2.h +++ b/engines/cge2/cge2.h @@ -147,6 +147,7 @@ public: bool _sex; int _mouseTop; bool _dark; + int _waitRef; ResourceManager *_resman; Vga *_vga; diff --git a/engines/cge2/snail.cpp b/engines/cge2/snail.cpp index 5b61d1f7ef..1eafd616d6 100644 --- a/engines/cge2/snail.cpp +++ b/engines/cge2/snail.cpp @@ -90,8 +90,7 @@ void CommandHandler::insertCommand(CommandType com, int ref, int val, void *ptr) } bool CommandHandler::idle() { - warning("STUB: CommandHandler::idle()"); - return false; + return (!_vm->_waitRef && _head == _tail); } void CommandHandler::reset() { |