aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche
diff options
context:
space:
mode:
authoruruk2014-02-05 10:46:51 +0100
committeruruk2014-02-05 10:51:33 +0100
commitacb70b645ad5ea23d914d533712d05ff22c66754 (patch)
tree2ab22aec67cadf5639c049da90b937b7ac15ad38 /engines/avalanche
parentf26bbefb2de1ad4051026248c2b6a894793a6a6e (diff)
downloadscummvm-rg350-acb70b645ad5ea23d914d533712d05ff22c66754.tar.gz
scummvm-rg350-acb70b645ad5ea23d914d533712d05ff22c66754.tar.bz2
scummvm-rg350-acb70b645ad5ea23d914d533712d05ff22c66754.zip
AVALANCHE: Implement GhostRoom::wait().
Diffstat (limited to 'engines/avalanche')
-rw-r--r--engines/avalanche/ghostroom.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/avalanche/ghostroom.cpp b/engines/avalanche/ghostroom.cpp
index 95b5476714..be2175c27e 100644
--- a/engines/avalanche/ghostroom.cpp
+++ b/engines/avalanche/ghostroom.cpp
@@ -68,7 +68,13 @@ GhostRoom::~GhostRoom() {
}
void GhostRoom::wait(uint16 howLong) {
- warning("STUB: wait()");
+ for (int i = 0; i < howLong; i++) {
+ Common::Event event;
+ _vm->getEvent(event);
+ if (event.type == Common::EVENT_KEYDOWN)
+ _vm->_sound->playNote(6177, 1);
+ _vm->_system->delayMillis(1);
+ }
}
void GhostRoom::doBat() {