aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorNipun Garg2019-06-20 18:33:18 +0530
committerEugene Sandulenko2019-09-03 17:16:52 +0200
commitdfdcbd8b4f397ebc2209d301b0f9ae5c9ee6e320 (patch)
treed0c8a598de6313e91020dfb39f2f419d722e3b04 /engines/hdb
parent157bd54fc3a11e82179e46611471fe12ecd9ee5a (diff)
downloadscummvm-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.cpp27
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;");