diff options
author | Paul Gilbert | 2017-08-04 22:57:36 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-08-04 22:57:36 -0400 |
commit | a851c3b1859e1408ed6c42b31d7f9976df795b4c (patch) | |
tree | a976bc0bce7e4d7163181e10dae16170093f2d6e /engines/titanic/npcs/bellbot.cpp | |
parent | c393c1faa0a0a0a49e24afaf7167b2e2227d5649 (diff) | |
download | scummvm-rg350-a851c3b1859e1408ed6c42b31d7f9976df795b4c.tar.gz scummvm-rg350-a851c3b1859e1408ed6c42b31d7f9976df795b4c.tar.bz2 scummvm-rg350-a851c3b1859e1408ed6c42b31d7f9976df795b4c.zip |
TITANIC: Don't allow loading games when Bellbot is summoned
Diffstat (limited to 'engines/titanic/npcs/bellbot.cpp')
-rw-r--r-- | engines/titanic/npcs/bellbot.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/titanic/npcs/bellbot.cpp b/engines/titanic/npcs/bellbot.cpp index 270e237213..002af21e9b 100644 --- a/engines/titanic/npcs/bellbot.cpp +++ b/engines/titanic/npcs/bellbot.cpp @@ -24,6 +24,7 @@ #include "titanic/carry/carry.h" #include "titanic/core/room_item.h" #include "titanic/pet_control/pet_control.h" +#include "titanic/titanic.h" namespace Titanic { @@ -89,6 +90,7 @@ bool CBellBot::OnSummonBotMsg(COnSummonBotMsg *msg) { _npcFlags &= ~NPCFLAG_MOVE_LOOP; } + getGameManager()->_gameState.setMode(GSMODE_CUTSCENE); playClip("Walk On", MOVIE_NOTIFY_OBJECT | MOVIE_WAIT_FOR_FINISH); movieEvent(); _npcFlags |= NPCFLAG_MOVING; @@ -111,6 +113,7 @@ bool CBellBot::MovieEndMsg(CMovieEndMsg *msg) { if (!(_npcFlags & NPCFLAG_MOVING)) { CTrueTalkNPC::MovieEndMsg(msg); } else if (clipExistsByEnd("Walk On", msg->_endFrame)) { + getGameManager()->_gameState.setMode(GSMODE_INTERACTIVE); setPosition(Point(80, 10)); loadFrame(543); _npcFlags |= NPCFLAG_START_IDLING; |