aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/cge2/cge2.cpp1
-rw-r--r--engines/cge2/cge2.h1
-rw-r--r--engines/cge2/snail.cpp3
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() {