aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_glyphs.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-23 11:29:26 -0400
committerPaul Gilbert2016-07-10 16:11:48 -0400
commit631d979fb3c213a2de8bf32a72236ab76e3ad1d8 (patch)
tree20bba34b4dd583703bf4e1295e4826d1705594b8 /engines/titanic/pet_control/pet_glyphs.cpp
parent58e1a807f3c7c9e0342ef1edd964d6d13de57dc3 (diff)
downloadscummvm-rg350-631d979fb3c213a2de8bf32a72236ab76e3ad1d8.tar.gz
scummvm-rg350-631d979fb3c213a2de8bf32a72236ab76e3ad1d8.tar.bz2
scummvm-rg350-631d979fb3c213a2de8bf32a72236ab76e3ad1d8.zip
TITANIC: Fix mouse presses on PET glyphs
Diffstat (limited to 'engines/titanic/pet_control/pet_glyphs.cpp')
-rw-r--r--engines/titanic/pet_control/pet_glyphs.cpp11
1 files changed, 6 insertions, 5 deletions
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;
}
}
}