aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game/sgt
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/sgt
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/sgt')
-rw-r--r--engines/titanic/game/sgt/sgt_state_room.cpp2
-rw-r--r--engines/titanic/game/sgt/sgt_state_room.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/game/sgt/sgt_state_room.cpp b/engines/titanic/game/sgt/sgt_state_room.cpp
index a6dc523bcf..cf735dd6d0 100644
--- a/engines/titanic/game/sgt/sgt_state_room.cpp
+++ b/engines/titanic/game/sgt/sgt_state_room.cpp
@@ -90,7 +90,7 @@ void CSGTStateRoom::load(SimpleFile *file) {
CBackground::load(file);
}
-bool CSGTStateRoom::handleEvent(const CEnterRoomMsg &msg) {
+bool CSGTStateRoom::handleEvent(CEnterRoomMsg &msg) {
warning("CSGTStateRoom::handleEvent");
return true;
}
diff --git a/engines/titanic/game/sgt/sgt_state_room.h b/engines/titanic/game/sgt/sgt_state_room.h
index dbe4538ced..4ec1617875 100644
--- a/engines/titanic/game/sgt/sgt_state_room.h
+++ b/engines/titanic/game/sgt/sgt_state_room.h
@@ -55,7 +55,7 @@ private:
int _fieldEC;
int _fieldF0;
protected:
- virtual bool handleEvent(const CEnterRoomMsg &msg);
+ virtual bool handleEvent(CEnterRoomMsg &msg);
public:
CLASSDEF
CSGTStateRoom();