diff options
| author | Nipun Garg | 2019-06-24 02:44:53 +0530 | 
|---|---|---|
| committer | Eugene Sandulenko | 2019-09-03 17:16:58 +0200 | 
| commit | e46e8b45d897738f03a8455ba93ae9b78d46d8cc (patch) | |
| tree | bb706ac1c18caa2e5d09ebac64833aa75923b07e | |
| parent | d3d0ceee4135bd446d378dd0aa0b3cba5a5c1026 (diff) | |
| download | scummvm-rg350-e46e8b45d897738f03a8455ba93ae9b78d46d8cc.tar.gz scummvm-rg350-e46e8b45d897738f03a8455ba93ae9b78d46d8cc.tar.bz2 scummvm-rg350-e46e8b45d897738f03a8455ba93ae9b78d46d8cc.zip | |
HDB: Process stopCine()
| -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; | 
