diff options
author | Paul Gilbert | 2016-03-18 23:18:59 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-03-18 23:18:59 -0400 |
commit | 4f5202f958d55ccfda6e67a6b8933630de240e87 (patch) | |
tree | 4054258dcea5b428a49534a9453e66dc07864ad0 /engines/titanic/game/pet | |
parent | 7a38b51357ba581fe51a392a031d09dd238039e8 (diff) | |
download | scummvm-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/pet')
-rw-r--r-- | engines/titanic/game/pet/pet_monitor.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/game/pet/pet_monitor.h | 2 | ||||
-rw-r--r-- | engines/titanic/game/pet/pet_position.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/game/pet/pet_position.h | 2 | ||||
-rw-r--r-- | engines/titanic/game/pet/pet_transport.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/game/pet/pet_transport.h | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/engines/titanic/game/pet/pet_monitor.cpp b/engines/titanic/game/pet/pet_monitor.cpp index 649ac978e9..44d24f264e 100644 --- a/engines/titanic/game/pet/pet_monitor.cpp +++ b/engines/titanic/game/pet/pet_monitor.cpp @@ -34,7 +34,7 @@ void CPETMonitor::load(SimpleFile *file) { CGameObject::load(file); } -bool CPETMonitor::handleEvent(const CEnterRoomMsg &msg) { +bool CPETMonitor::handleEvent(CEnterRoomMsg &msg) { warning("CPETMonitor::handleEvent"); return true; } diff --git a/engines/titanic/game/pet/pet_monitor.h b/engines/titanic/game/pet/pet_monitor.h index 97961ee929..1d66a58d29 100644 --- a/engines/titanic/game/pet/pet_monitor.h +++ b/engines/titanic/game/pet/pet_monitor.h @@ -30,7 +30,7 @@ namespace Titanic { class CPETMonitor : public CGameObject, CEnterRoomMsgTarget { protected: - virtual bool handleEvent(const CEnterRoomMsg &msg); + virtual bool handleEvent(CEnterRoomMsg &msg); public: CLASSDEF diff --git a/engines/titanic/game/pet/pet_position.cpp b/engines/titanic/game/pet/pet_position.cpp index aafc21beb2..b25111f62c 100644 --- a/engines/titanic/game/pet/pet_position.cpp +++ b/engines/titanic/game/pet/pet_position.cpp @@ -34,7 +34,7 @@ void CPETPosition::load(SimpleFile *file) { CGameObject::load(file); } -bool CPETPosition::handleEvent(const CEnterRoomMsg &msg) { +bool CPETPosition::handleEvent(CEnterRoomMsg &msg) { warning("CPETPosition::handleEvent"); return true; } diff --git a/engines/titanic/game/pet/pet_position.h b/engines/titanic/game/pet/pet_position.h index d72f42ca3a..8a0623932b 100644 --- a/engines/titanic/game/pet/pet_position.h +++ b/engines/titanic/game/pet/pet_position.h @@ -30,7 +30,7 @@ namespace Titanic { class CPETPosition : public CGameObject, CEnterRoomMsgTarget { protected: - virtual bool handleEvent(const CEnterRoomMsg &msg); + virtual bool handleEvent(CEnterRoomMsg &msg); public: CLASSDEF diff --git a/engines/titanic/game/pet/pet_transport.cpp b/engines/titanic/game/pet/pet_transport.cpp index 40cc155c5b..a88b703b10 100644 --- a/engines/titanic/game/pet/pet_transport.cpp +++ b/engines/titanic/game/pet/pet_transport.cpp @@ -34,7 +34,7 @@ void CPETTransport::load(SimpleFile *file) { CGameObject::load(file); } -bool CPETTransport::handleEvent(const CEnterRoomMsg &msg) { +bool CPETTransport::handleEvent(CEnterRoomMsg &msg) { warning("CPETTransport::handleEvent"); return true; } diff --git a/engines/titanic/game/pet/pet_transport.h b/engines/titanic/game/pet/pet_transport.h index 1eb48322e2..3dc856d5b2 100644 --- a/engines/titanic/game/pet/pet_transport.h +++ b/engines/titanic/game/pet/pet_transport.h @@ -30,7 +30,7 @@ namespace Titanic { class CPETTransport : public CGameObject, CEnterRoomMsgTarget { protected: - virtual bool handleEvent(const CEnterRoomMsg &msg); + virtual bool handleEvent(CEnterRoomMsg &msg); public: CLASSDEF |