diff options
author | Nipun Garg | 2019-06-20 18:33:18 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:52 +0200 |
commit | dfdcbd8b4f397ebc2209d301b0f9ae5c9ee6e320 (patch) | |
tree | d0c8a598de6313e91020dfb39f2f419d722e3b04 /engines/hdb | |
parent | 157bd54fc3a11e82179e46611471fe12ecd9ee5a (diff) | |
download | scummvm-rg350-dfdcbd8b4f397ebc2209d301b0f9ae5c9ee6e320.tar.gz scummvm-rg350-dfdcbd8b4f397ebc2209d301b0f9ae5c9ee6e320.tar.bz2 scummvm-rg350-dfdcbd8b4f397ebc2209d301b0f9ae5c9ee6e320.zip |
HDB: Process cineEntityFace()
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/ai-cinematic.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/engines/hdb/ai-cinematic.cpp b/engines/hdb/ai-cinematic.cpp index 45274b4a7c..0fa6bc8641 100644 --- a/engines/hdb/ai-cinematic.cpp +++ b/engines/hdb/ai-cinematic.cpp @@ -179,6 +179,33 @@ void AI::processCines() { } } break; + case C_ENTITYFACE: + { + AIEntity *e = locateEntity(_cine[i]->title); + + if (e) { + int d = (int)_cine[i]->x; + e->dir = (AIDir)d; + switch (e->dir) { + case DIR_UP: + e->state = STATE_STANDUP; + break; + case DIR_DOWN: + e->state = STATE_STANDDOWN; + break; + case DIR_LEFT: + e->state = STATE_STANDLEFT; + break; + case DIR_RIGHT: + e->state = STATE_STANDRIGHT; + break; + } + } else { + warning("Can't find %s to ENTITYFACE", _cine[i]->title); + } + complete = true; + break; + } case C_USEENTITY: _cine[i]->e = locateEntity(_cine[i]->string); warning("STUB: PROCESSCINES: USEENTITY: HDBGame::useEntity required;"); |