diff options
author | Nipun Garg | 2019-06-18 05:12:13 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:47 +0200 |
commit | f9b71cf6603228a4911ce10f348f321e23b5ee9d (patch) | |
tree | 22673a07299cea63c16bfb75f6e94bb880695ef9 | |
parent | 7e728aff4ea90ca7db622c19feac57ecae189ee1 (diff) | |
download | scummvm-rg350-f9b71cf6603228a4911ce10f348f321e23b5ee9d.tar.gz scummvm-rg350-f9b71cf6603228a4911ce10f348f321e23b5ee9d.tar.bz2 scummvm-rg350-f9b71cf6603228a4911ce10f348f321e23b5ee9d.zip |
HDB: Process cineWait and cineWaitUntilDone
-rw-r--r-- | engines/hdb/ai.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/engines/hdb/ai.cpp b/engines/hdb/ai.cpp index 45a29f8d53..73db78b35e 100644 --- a/engines/hdb/ai.cpp +++ b/engines/hdb/ai.cpp @@ -80,6 +80,25 @@ void AI::processCines() { } warning("STUB: MAP::CenterMapXY required"); break; + case C_WAIT: + if (!((*it)->start)) { + (*it)->start = 1; + (*it)->delay = g_system->getMillis() * 23.5 + (*it)->delay * 1000; + } else { + if ((*it)->delay < g_system->getMillis() * 23.5) { + complete = true; + } else { + bailOut = true; + } + } + break; + case C_WAITUNTILDONE: + if ((uint) (it - _cine->begin()) == _cine->size() - 1) { + complete = true; + } else { + bailOut = true; + } + break; } } } |