diff options
Diffstat (limited to 'engines')
| -rw-r--r-- | engines/titanic/game/pet/pet_transport.cpp | 6 | ||||
| -rw-r--r-- | engines/titanic/game/pet/pet_transport.h | 1 | 
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;  | 
