aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/titanic/game/dead_area.cpp5
-rw-r--r--engines/titanic/game/dead_area.h5
2 files changed, 8 insertions, 2 deletions
diff --git a/engines/titanic/game/dead_area.cpp b/engines/titanic/game/dead_area.cpp
index 1692d6b8d1..5d5b2d06aa 100644
--- a/engines/titanic/game/dead_area.cpp
+++ b/engines/titanic/game/dead_area.cpp
@@ -24,6 +24,11 @@
namespace Titanic {
+BEGIN_MESSAGE_MAP(CDeadArea, CGameObject)
+ ON_MESSAGE(MouseButtonDownMsg)
+ ON_MESSAGE(MouseButtonUpMsg)
+END_MESSAGE_MAP()
+
CDeadArea::CDeadArea() : CGameObject() {
}
diff --git a/engines/titanic/game/dead_area.h b/engines/titanic/game/dead_area.h
index 6390475d4e..9a9de3ad92 100644
--- a/engines/titanic/game/dead_area.h
+++ b/engines/titanic/game/dead_area.h
@@ -32,9 +32,10 @@ namespace Titanic {
* Implements a non-responsive screen area
*/
class CDeadArea : public CGameObject {
+ DECLARE_MESSAGE_MAP
protected:
- virtual bool handleMessage(CMouseButtonDownMsg &msg) { return true; }
- virtual bool handleMessage(CMouseButtonUpMsg &msg) { return true; }
+ virtual bool MouseButtonDownMsg(CMouseButtonDownMsg *msg) { return true; }
+ virtual bool MouseButtonUpMsg(CMouseButtonUpMsg *msg) { return true; }
public:
CLASSDEF
CDeadArea();