From acb70b645ad5ea23d914d533712d05ff22c66754 Mon Sep 17 00:00:00 2001 From: uruk Date: Wed, 5 Feb 2014 10:46:51 +0100 Subject: AVALANCHE: Implement GhostRoom::wait(). --- engines/avalanche/ghostroom.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'engines') 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() { -- cgit v1.2.3