diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/titanic/game/nav_helmet.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/titanic/game/nav_helmet.cpp b/engines/titanic/game/nav_helmet.cpp index 8002eebcb5..c2496be2a2 100644 --- a/engines/titanic/game/nav_helmet.cpp +++ b/engines/titanic/game/nav_helmet.cpp @@ -48,15 +48,15 @@ void CNavHelmet::load(SimpleFile *file) { } bool CNavHelmet::MovieEndMsg(CMovieEndMsg *msg) { - if (_flag) { + CPetControl *pet = getPetControl(); + assert(pet); + + if (_flag && pet->isAreaUnlocked()) { setVisible(false); - CPetControl *pet = getPetControl(); - if (pet) { - pet->setArea(PET_STARFIELD); - petDisplayMessage(1, ADJUST_VIEWING_APPARATUS); - pet->incAreaLocks(); - } + pet->setArea(PET_STARFIELD); + petDisplayMessage(1, ADJUST_VIEWING_APPARATUS); + pet->incAreaLocks(); starFn(STAR_SHOW); starFn(STAR_12); |