aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hdb/ai.cpp19
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;
}
}
}