diff options
Diffstat (limited to 'engines/titanic/pet_control/pet_remote_glyphs.cpp')
-rw-r--r-- | engines/titanic/pet_control/pet_remote_glyphs.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/engines/titanic/pet_control/pet_remote_glyphs.cpp b/engines/titanic/pet_control/pet_remote_glyphs.cpp index b56c2f6854..7aae879646 100644 --- a/engines/titanic/pet_control/pet_remote_glyphs.cpp +++ b/engines/titanic/pet_control/pet_remote_glyphs.cpp @@ -545,11 +545,16 @@ bool CNavigationControllerGlyph::MouseButtonUpMsg(const Point &pt) { if (!_gfxElement->MouseButtonUpMsg(pt)) return false; + CPetControl *pet = getPetControl(); + CStarControl *starControl = pet->getStarControl(); _flag = !_flag; - CTreeItem *target = getPetControl()->_remoteTarget; - if (target) { - CPETHelmetOnOffMsg msg; - msg.execute(target); + + if (!starControl->isSkipped()) { + CTreeItem *target = pet->_remoteTarget; + if (target) { + CPETHelmetOnOffMsg msg; + msg.execute(target); + } } return true; |