diff options
author | Nipun Garg | 2019-06-20 17:48:25 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:52 +0200 |
commit | 2868423cd30fa2be11e7254e82e1e37b937afa77 (patch) | |
tree | 48c368a6623ad1cb375c56928b7ac4f35eb3cce4 /engines/hdb | |
parent | e39f5c361f790c90a7d57d894a4e04568858000f (diff) | |
download | scummvm-rg350-2868423cd30fa2be11e7254e82e1e37b937afa77.tar.gz scummvm-rg350-2868423cd30fa2be11e7254e82e1e37b937afa77.tar.bz2 scummvm-rg350-2868423cd30fa2be11e7254e82e1e37b937afa77.zip |
HDB: Process cineLockPlayer() + cineUnlockPlayer()
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/ai-cinematic.cpp | 12 |
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; |