aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
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;");