diff options
author | Paul Gilbert | 2016-04-24 08:15:51 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:11:58 -0400 |
commit | af06188baedf10247893c6f964462c74eac5f446 (patch) | |
tree | c4d2ef57fce6e3bd13db1d584c7f6df24f8db4cc /engines/titanic/pet_control/pet_control.cpp | |
parent | 4180e85bc0da500c347a3c5076ec7e6921e8daff (diff) | |
download | scummvm-rg350-af06188baedf10247893c6f964462c74eac5f446.tar.gz scummvm-rg350-af06188baedf10247893c6f964462c74eac5f446.tar.bz2 scummvm-rg350-af06188baedf10247893c6f964462c74eac5f446.zip |
TITANIC: Implementing CPetRooms methods
Diffstat (limited to 'engines/titanic/pet_control/pet_control.cpp')
-rw-r--r-- | engines/titanic/pet_control/pet_control.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/titanic/pet_control/pet_control.cpp b/engines/titanic/pet_control/pet_control.cpp index 145543fb07..98887f60d2 100644 --- a/engines/titanic/pet_control/pet_control.cpp +++ b/engines/titanic/pet_control/pet_control.cpp @@ -431,4 +431,9 @@ void CPetControl::playSound(int soundNum) { } } +CString CPetControl::getRoomName() const { + CRoomItem *room = getRoom(); + return room ? room->getName() : CString(); +} + } // End of namespace Titanic |