diff options
author | Nipun Garg | 2019-06-21 21:45:45 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:54 +0200 |
commit | b085dcfa974ddcb1cdad211b088428dfc9cb625d (patch) | |
tree | a2859ecd0c66919477371560f8ab52a058645ce1 | |
parent | 8c024e7f57347a78f2478d59ab6f881b1e1a51b2 (diff) | |
download | scummvm-rg350-b085dcfa974ddcb1cdad211b088428dfc9cb625d.tar.gz scummvm-rg350-b085dcfa974ddcb1cdad211b088428dfc9cb625d.tar.bz2 scummvm-rg350-b085dcfa974ddcb1cdad211b088428dfc9cb625d.zip |
HDB: Remove stub from processCines: C_USEENTITY
-rw-r--r-- | engines/hdb/ai-cinematic.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/hdb/ai-cinematic.cpp b/engines/hdb/ai-cinematic.cpp index 2baac7a954..8706981129 100644 --- a/engines/hdb/ai-cinematic.cpp +++ b/engines/hdb/ai-cinematic.cpp @@ -209,8 +209,11 @@ void AI::processCines() { break; } case C_USEENTITY: - _cine[i]->e = locateEntity(_cine[i]->string); - warning("STUB: PROCESSCINES: USEENTITY: HDBGame::useEntity required;"); + for (Common::Array<AIEntity *>::iterator it = _ents->begin(); it != _ents->end(); it++) { + if (Common::matchString((*it)->entityName, _cine[i]->string)) { + g_hdb->useEntity((*it)); + } + } warning("STUB: PROCESSCINES: USEENTITY: CheckActionList required;"); warning("STUB: PROCESSCINES: USEENTITY: CheckAutoList required;"); complete = true; |