aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_glyphs.cpp
diff options
context:
space:
mode:
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;
}
}
}