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/callbot.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/callbot.cpp')
-rw-r--r-- | engines/titanic/npcs/callbot.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/titanic/npcs/callbot.cpp b/engines/titanic/npcs/callbot.cpp index 0979fa46f6..a5e8542db0 100644 --- a/engines/titanic/npcs/callbot.cpp +++ b/engines/titanic/npcs/callbot.cpp @@ -22,6 +22,7 @@ #include "titanic/npcs/callbot.h" #include "titanic/core/room_item.h" +#include "titanic/titanic.h" namespace Titanic { @@ -59,10 +60,15 @@ bool CCallBot::EnterViewMsg(CEnterViewMsg *msg) { CRoomItem *room = getRoom(); if (room) { + CGameState &gs = getGameManager()->_gameState; + gs.setMode(GSMODE_CUTSCENE); + CSummonBotQueryMsg queryMsg; queryMsg._npcName = _npcName; if (queryMsg.execute(room)) petOnSummonBot(_npcName, 0); + + gs.setMode(GSMODE_INTERACTIVE); } _enabled = false; |