aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game/transport
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/game/transport
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/game/transport')
-rw-r--r--engines/titanic/game/transport/lift.cpp2
-rw-r--r--engines/titanic/game/transport/lift.h2
-rw-r--r--engines/titanic/game/transport/lift_indicator.h2
-rw-r--r--engines/titanic/game/transport/pellerator.cpp2
-rw-r--r--engines/titanic/game/transport/pellerator.h2
5 files changed, 5 insertions, 5 deletions
diff --git a/engines/titanic/game/transport/lift.cpp b/engines/titanic/game/transport/lift.cpp
index 22201291aa..edf69fe31a 100644
--- a/engines/titanic/game/transport/lift.cpp
+++ b/engines/titanic/game/transport/lift.cpp
@@ -57,7 +57,7 @@ void CLift::load(SimpleFile *file) {
CTransport::load(file);
}
-bool CLift::handleEvent(const CEnterRoomMsg &msg) {
+bool CLift::handleEvent(CEnterRoomMsg &msg) {
warning("CLift::handleEvent");
return true;
}
diff --git a/engines/titanic/game/transport/lift.h b/engines/titanic/game/transport/lift.h
index 42a340c61f..439e65bb30 100644
--- a/engines/titanic/game/transport/lift.h
+++ b/engines/titanic/game/transport/lift.h
@@ -39,7 +39,7 @@ private:
int _fieldF8;
protected:
- virtual bool handleEvent(const CEnterRoomMsg &msg);
+ virtual bool handleEvent(CEnterRoomMsg &msg);
public:
CLASSDEF
CLift() : CTransport(), _fieldF8(1) {}
diff --git a/engines/titanic/game/transport/lift_indicator.h b/engines/titanic/game/transport/lift_indicator.h
index b707fbbed9..161f032480 100644
--- a/engines/titanic/game/transport/lift_indicator.h
+++ b/engines/titanic/game/transport/lift_indicator.h
@@ -35,7 +35,7 @@ private:
int _field108;
int _field10C;
protected:
- virtual bool handleEvent(const CEnterRoomMsg &msg) { return true; }
+ virtual bool handleEvent(CEnterRoomMsg &msg) { return true; }
public:
CLASSDEF
CLiftindicator();
diff --git a/engines/titanic/game/transport/pellerator.cpp b/engines/titanic/game/transport/pellerator.cpp
index 99c4db3160..16f42772c3 100644
--- a/engines/titanic/game/transport/pellerator.cpp
+++ b/engines/titanic/game/transport/pellerator.cpp
@@ -43,7 +43,7 @@ void CPellerator::load(SimpleFile *file) {
CTransport::load(file);
}
-bool CPellerator::handleEvent(const CEnterRoomMsg &msg) {
+bool CPellerator::handleEvent(CEnterRoomMsg &msg) {
warning("CPellerator::handleEvent");
return true;
}
diff --git a/engines/titanic/game/transport/pellerator.h b/engines/titanic/game/transport/pellerator.h
index 502af2430a..c997373382 100644
--- a/engines/titanic/game/transport/pellerator.h
+++ b/engines/titanic/game/transport/pellerator.h
@@ -33,7 +33,7 @@ private:
static int _v1;
static int _v2;
protected:
- virtual bool handleEvent(const CEnterRoomMsg &msg);
+ virtual bool handleEvent(CEnterRoomMsg &msg);
public:
CLASSDEF