aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNipun Garg2019-06-19 01:16:38 +0530
committerEugene Sandulenko2019-09-03 17:16:49 +0200
commit0047051e18d8285d6ee377db61af11b838d827fd (patch)
tree100a72febeb844c9961a3f843895959882bf4eb4
parent78ef1a9f014a8af3b6ba74928d849752c2abc12f (diff)
downloadscummvm-rg350-0047051e18d8285d6ee377db61af11b838d827fd.tar.gz
scummvm-rg350-0047051e18d8285d6ee377db61af11b838d827fd.tar.bz2
scummvm-rg350-0047051e18d8285d6ee377db61af11b838d827fd.zip
HDB: Process cineSetEntity()
-rw-r--r--engines/hdb/ai.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/hdb/ai.cpp b/engines/hdb/ai.cpp
index 9d5767c312..3dfbbb6af1 100644
--- a/engines/hdb/ai.cpp
+++ b/engines/hdb/ai.cpp
@@ -140,6 +140,19 @@ void AI::processCines() {
bailOut = true;
}
break;
+ case C_SETENTITY:
+ warning("STUB: AI::locateEntity required");
+ if (_cine[i]->e) {
+ _cine[i]->e->tileX = (int)_cine[i]->x / kTileWidth;
+ _cine[i]->e->x = (int)_cine[i]->x;
+ _cine[i]->e->tileY = (int)_cine[i]->y / kTileHeight;
+ _cine[i]->e->y = (int)_cine[i]->y;
+ _cine[i]->e->level = (int)_cine[i]->x2;
+ } else {
+ warning("Can't locate '%s' in setEntity", _cine[i]->title);
+ }
+ complete = true;
+ break;
case C_FADEIN:
if (!_cine[i]->start) {
g_hdb->_drawMan->setFade(true, (bool)_cine[i]->end, _cine[i]->speed);