From 22d4f60b3ac40684f67ad1399fef02686b4ade4f Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Sun, 23 Jun 2019 06:50:23 +0530 Subject: HDB: Process cineDialog() --- engines/hdb/ai-cinematic.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'engines') diff --git a/engines/hdb/ai-cinematic.cpp b/engines/hdb/ai-cinematic.cpp index 6dbe669dc0..c6c8674e88 100644 --- a/engines/hdb/ai-cinematic.cpp +++ b/engines/hdb/ai-cinematic.cpp @@ -208,6 +208,16 @@ void AI::processCines() { complete = true; break; } + case C_DIALOG: + if (_cine[i]->start) { + g_hdb->_window->openDialog(_cine[i]->title, -1, _cine[i]->string, 0, NULL); + g_hdb->_window->setDialogDelay(_cine[i]->delay); + _cine[i]->start = 0; + } else { + if (g_hdb->_window->getDialogDelay() < g_hdb->getTimeSlice()) + complete = true; + } + break; case C_USEENTITY: for (Common::Array::iterator it = _ents->begin(); it != _ents->end(); it++) { if ((*it)->entityName && Common::matchString((*it)->entityName, _cine[i]->string)) { -- cgit v1.2.3