aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/titanic/pet_control/pet_conversations.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/titanic/pet_control/pet_conversations.cpp b/engines/titanic/pet_control/pet_conversations.cpp
index eb2f9716b6..810434074a 100644
--- a/engines/titanic/pet_control/pet_conversations.cpp
+++ b/engines/titanic/pet_control/pet_conversations.cpp
@@ -143,9 +143,15 @@ bool CPetConversations::isValid(CPetControl *petControl) {
}
bool CPetConversations::MouseButtonDownMsg(CMouseButtonDownMsg *msg) {
+ if (_scrollDown.MouseButtonDownMsg(msg->_mousePos)) {
+ scrollDown();
+ return true;
+ } else if (_scrollUp.MouseButtonDownMsg(msg->_mousePos)) {
+ scrollUp();
+ return true;
+ }
+
return
- _scrollUp.MouseButtonDownMsg(msg->_mousePos) ||
- _scrollDown.MouseButtonDownMsg(msg->_mousePos) ||
_doorBot.MouseButtonDownMsg(msg->_mousePos) ||
_bellBot.MouseButtonDownMsg(msg->_mousePos);
}