aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/npcs
diff options
context:
space:
mode:
authorPaul Gilbert2016-03-18 23:18:59 -0400
committerPaul Gilbert2016-03-18 23:18:59 -0400
commit4f5202f958d55ccfda6e67a6b8933630de240e87 (patch)
tree4054258dcea5b428a49534a9453e66dc07864ad0 /engines/titanic/npcs
parent7a38b51357ba581fe51a392a031d09dd238039e8 (diff)
downloadscummvm-rg350-4f5202f958d55ccfda6e67a6b8933630de240e87.tar.gz
scummvm-rg350-4f5202f958d55ccfda6e67a6b8933630de240e87.tar.bz2
scummvm-rg350-4f5202f958d55ccfda6e67a6b8933630de240e87.zip
TITANIC: Remove const prefix from passed messages
Turns out that some of the messages have properties that the objects that handle them can set. For example, the CMouseDragStartMsg has a _dragItem property that an item that allows dragging will explicitly set, allowing the input handler to keep track of what was dragged.
Diffstat (limited to 'engines/titanic/npcs')
-rw-r--r--engines/titanic/npcs/barbot.cpp2
-rw-r--r--engines/titanic/npcs/barbot.h2
-rw-r--r--engines/titanic/npcs/liftbot.cpp2
-rw-r--r--engines/titanic/npcs/liftbot.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/engines/titanic/npcs/barbot.cpp b/engines/titanic/npcs/barbot.cpp
index c9a96b989b..907d3c0c71 100644
--- a/engines/titanic/npcs/barbot.cpp
+++ b/engines/titanic/npcs/barbot.cpp
@@ -233,7 +233,7 @@ void CBarbot::load(SimpleFile *file) {
CTrueTalkNPC::load(file);
}
-bool CBarbot::handleEvent(const CEnterRoomMsg &msg) {
+bool CBarbot::handleEvent(CEnterRoomMsg &msg) {
warning("TODO: Barbot::CEnterRoomMsg");
return true;
}
diff --git a/engines/titanic/npcs/barbot.h b/engines/titanic/npcs/barbot.h
index 160edd63d9..442578ef6c 100644
--- a/engines/titanic/npcs/barbot.h
+++ b/engines/titanic/npcs/barbot.h
@@ -174,7 +174,7 @@ private:
int _field33C;
int _field340;
protected:
- virtual bool handleEvent(const CEnterRoomMsg &msg);
+ virtual bool handleEvent(CEnterRoomMsg &msg);
public:
CLASSDEF
CBarbot();
diff --git a/engines/titanic/npcs/liftbot.cpp b/engines/titanic/npcs/liftbot.cpp
index 76a48f07d1..dfc0a4f0ad 100644
--- a/engines/titanic/npcs/liftbot.cpp
+++ b/engines/titanic/npcs/liftbot.cpp
@@ -48,7 +48,7 @@ void CLiftBot::load(SimpleFile *file) {
CTrueTalkNPC::load(file);
}
-bool CLiftBot::handleEvent(const CEnterRoomMsg &msg) {
+bool CLiftBot::handleEvent(CEnterRoomMsg &msg) {
warning("CLiftBot::handleEvent");
return true;
}
diff --git a/engines/titanic/npcs/liftbot.h b/engines/titanic/npcs/liftbot.h
index 81c5399e7f..3a41bf3a96 100644
--- a/engines/titanic/npcs/liftbot.h
+++ b/engines/titanic/npcs/liftbot.h
@@ -35,7 +35,7 @@ private:
private:
int _field108;
protected:
- virtual bool handleEvent(const CEnterRoomMsg &msg);
+ virtual bool handleEvent(CEnterRoomMsg &msg);
public:
CLASSDEF
CLiftBot();