From 631d979fb3c213a2de8bf32a72236ab76e3ad1d8 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 23 Apr 2016 11:29:26 -0400 Subject: TITANIC: Fix mouse presses on PET glyphs --- engines/titanic/pet_control/pet_glyphs.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'engines/titanic/pet_control/pet_glyphs.cpp') diff --git a/engines/titanic/pet_control/pet_glyphs.cpp b/engines/titanic/pet_control/pet_glyphs.cpp index 7144378548..632c8a38a1 100644 --- a/engines/titanic/pet_control/pet_glyphs.cpp +++ b/engines/titanic/pet_control/pet_glyphs.cpp @@ -308,14 +308,15 @@ bool CPetGlyphs::mouseButtonDown(const Point &pt) { int index = getItemIndex(idx); CPetGlyph *glyph = getGlyph(index); if (glyph) { - if (glyph->checkHighlight(pt)) - return true; - - if (!(_field20 & 2)) { + if (_highlightIndex == index) { + glyph->proc28(glyphRect); + glyph->proc14(); + } else { changeHighlight(index); makePetDirty(); - return true; } + + return true; } } } -- cgit v1.2.3