diff options
author | Nipun Garg | 2019-06-20 18:15:03 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:52 +0200 |
commit | 89ceed279876b4fd39272c504055c4729e24549e (patch) | |
tree | 9623715f12f01748911da03e534559499dec050a /engines/hdb | |
parent | 3a8a79f2cc22c77b1c4e5779a174587300427355 (diff) | |
download | scummvm-rg350-89ceed279876b4fd39272c504055c4729e24549e.tar.gz scummvm-rg350-89ceed279876b4fd39272c504055c4729e24549e.tar.bz2 scummvm-rg350-89ceed279876b4fd39272c504055c4729e24549e.zip |
HDB: Process cineMoveEntity()
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/ai-cinematic.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/engines/hdb/ai-cinematic.cpp b/engines/hdb/ai-cinematic.cpp index cab0d0fd30..6d0c2b3c6e 100644 --- a/engines/hdb/ai-cinematic.cpp +++ b/engines/hdb/ai-cinematic.cpp @@ -161,6 +161,24 @@ void AI::processCines() { } complete = true; break; + case C_MOVEENTITY: + if (!_cine[i]->start) { + AIEntity *e = locateEntity(_cine[i]->title); + if (e) { + _cine[i]->e = e; + _cine[i]->e->moveSpeed = _cine[i]->speed; + _cine[i]->e->level = (int)_cine[i]->x2; + setEntityGoal(_cine[i]->e, (int)_cine[i]->x, (int)_cine[i]->y); + _cine[i]->start = 1; + } else { + warning("Can't locate '%s' in moveEntity", _cine[i]->title); + } + } else { + if (!_cine[i]->e->goalX) { + complete = true; + } + } + case C_USEENTITY: _cine[i]->e = locateEntity(_cine[i]->string); warning("STUB: PROCESSCINES: USEENTITY: HDBGame::useEntity required;"); |