From af06188baedf10247893c6f964462c74eac5f446 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 24 Apr 2016 08:15:51 -0400 Subject: TITANIC: Implementing CPetRooms methods --- engines/titanic/pet_control/pet_glyphs.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (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 8ed8fcf47c..8f8d8ba331 100644 --- a/engines/titanic/pet_control/pet_glyphs.cpp +++ b/engines/titanic/pet_control/pet_glyphs.cpp @@ -307,7 +307,7 @@ bool CPetGlyphs::MouseButtonDownMsg(const Point &pt) { CPetGlyph *glyph = getGlyph(index); if (glyph) { if (_highlightIndex == index) { - glyph->proc28(glyphRect); + glyph->MouseButtonDownMsg(glyphRect); glyph->proc14(); } else { changeHighlight(index); @@ -426,4 +426,16 @@ void CPetGlyphs::endDragging() { _dragGlyph = nullptr; } +bool CPetGlyphs::highlighted14() { + if (_highlightIndex != -1) { + CPetGlyph *pet = getGlyph(_highlightIndex); + if (pet) { + pet->proc14(); + return true; + } + } + + return false; +} + } // End of namespace Titanic -- cgit v1.2.3