diff options
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/ai-cinematic.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/hdb/ai-cinematic.cpp b/engines/hdb/ai-cinematic.cpp index 6897cfff6d..9d55df22d6 100644 --- a/engines/hdb/ai-cinematic.cpp +++ b/engines/hdb/ai-cinematic.cpp @@ -90,6 +90,17 @@ void AI::processCines() { g_system->getMillis(), _cine[i]->start, _cine[i]->delay); switch (_cine[i]->cmdType) { + case C_STOPCINE: + char func[64]; + memset(func, 0, 64); + + if (_cine[i]->title) + strcpy(func, _cine[i]->title); + + cineCleanup(); + if (func[0]) + g_hdb->_lua->callFunction(func, 0); + break; case C_LOCKPLAYER: _playerLock = true; complete = true; |