aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNipun Garg2019-06-20 17:48:25 +0530
committerEugene Sandulenko2019-09-03 17:16:52 +0200
commit2868423cd30fa2be11e7254e82e1e37b937afa77 (patch)
tree48c368a6623ad1cb375c56928b7ac4f35eb3cce4
parente39f5c361f790c90a7d57d894a4e04568858000f (diff)
downloadscummvm-rg350-2868423cd30fa2be11e7254e82e1e37b937afa77.tar.gz
scummvm-rg350-2868423cd30fa2be11e7254e82e1e37b937afa77.tar.bz2
scummvm-rg350-2868423cd30fa2be11e7254e82e1e37b937afa77.zip
HDB: Process cineLockPlayer() + cineUnlockPlayer()
-rw-r--r--engines/hdb/ai-cinematic.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/hdb/ai-cinematic.cpp b/engines/hdb/ai-cinematic.cpp
index 44fe3a36e3..0f21d4fe0d 100644
--- a/engines/hdb/ai-cinematic.cpp
+++ b/engines/hdb/ai-cinematic.cpp
@@ -83,6 +83,18 @@ void AI::processCines() {
g_system->getMillis(), _cine[i]->start, _cine[i]->delay);
switch (_cine[i]->cmdType) {
+ case C_LOCKPLAYER:
+ _playerLock = true;
+ complete = true;
+ if (_player) {
+ stopEntity(_player);
+ }
+ clearWaypoints();
+ break;
+ case C_UNLOCKPLAYER:
+ _playerLock = false;
+ complete = true;
+ break;
case C_SETCAMERA:
_cameraX = _cine[i]->x;
_cameraY = _cine[i]->y;