aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2016-11-10 21:46:02 -0500
committerPaul Gilbert2016-11-10 21:46:02 -0500
commit8c52ef42b5a96a4edfdef95174cf02f739287015 (patch)
tree8fb2ebee776a97a640aa19250c8b7f1be2cdb703 /engines
parent7fdba3151bb1c7ed816e312b9b9250b70e4dfce1 (diff)
downloadscummvm-rg350-8c52ef42b5a96a4edfdef95174cf02f739287015.tar.gz
scummvm-rg350-8c52ef42b5a96a4edfdef95174cf02f739287015.tar.bz2
scummvm-rg350-8c52ef42b5a96a4edfdef95174cf02f739287015.zip
TITANIC: Fix implementation of CPETTransport class
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/game/pet/pet_transport.cpp6
-rw-r--r--engines/titanic/game/pet/pet_transport.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/engines/titanic/game/pet/pet_transport.cpp b/engines/titanic/game/pet/pet_transport.cpp
index a48e70ed01..29dce6c1b6 100644
--- a/engines/titanic/game/pet/pet_transport.cpp
+++ b/engines/titanic/game/pet/pet_transport.cpp
@@ -26,6 +26,7 @@ namespace Titanic {
BEGIN_MESSAGE_MAP(CPETTransport, CGameObject)
ON_MESSAGE(EnterRoomMsg)
+ ON_MESSAGE(LeaveRoomMsg)
END_MESSAGE_MAP()
void CPETTransport::save(SimpleFile *file, int indent) {
@@ -39,6 +40,11 @@ void CPETTransport::load(SimpleFile *file) {
}
bool CPETTransport::EnterRoomMsg(CEnterRoomMsg *msg) {
+ petSetRemoteTarget();
+ return true;
+}
+
+bool CPETTransport::LeaveRoomMsg(CLeaveRoomMsg *msg) {
petClear();
return true;
}
diff --git a/engines/titanic/game/pet/pet_transport.h b/engines/titanic/game/pet/pet_transport.h
index 58aefe6743..6a08c4bdf3 100644
--- a/engines/titanic/game/pet/pet_transport.h
+++ b/engines/titanic/game/pet/pet_transport.h
@@ -31,6 +31,7 @@ namespace Titanic {
class CPETTransport : public CGameObject {
DECLARE_MESSAGE_MAP;
virtual bool EnterRoomMsg(CEnterRoomMsg *msg);
+ virtual bool LeaveRoomMsg(CLeaveRoomMsg *msg);
public:
CLASSDEF;