aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_control.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-14 22:31:33 -0400
committerPaul Gilbert2016-07-10 16:11:09 -0400
commit2dcda26eb1253d884d6a921a3f2ead76021b9bc4 (patch)
tree304f4bf8bf69b3325cc7e06a099a9a6de884448d /engines/titanic/pet_control/pet_control.cpp
parent7ddd5d1a8b97bda75e4eece9c91ff3286e3c3eca (diff)
downloadscummvm-rg350-2dcda26eb1253d884d6a921a3f2ead76021b9bc4.tar.gz
scummvm-rg350-2dcda26eb1253d884d6a921a3f2ead76021b9bc4.tar.bz2
scummvm-rg350-2dcda26eb1253d884d6a921a3f2ead76021b9bc4.zip
TITANIC: Implement CBridgePiece message handlers
Diffstat (limited to 'engines/titanic/pet_control/pet_control.cpp')
-rw-r--r--engines/titanic/pet_control/pet_control.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/titanic/pet_control/pet_control.cpp b/engines/titanic/pet_control/pet_control.cpp
index 2f119be5d3..a955b085cc 100644
--- a/engines/titanic/pet_control/pet_control.cpp
+++ b/engines/titanic/pet_control/pet_control.cpp
@@ -369,4 +369,12 @@ void CPetControl::addToInventory(CCarry *item) {
_inventory.addItem(item);
}
+void CPetControl::moveToHiddenRoom(CTreeItem *item) {
+ CRoomItem *room = getHiddenRoom();
+ if (room) {
+ item->detach();
+ room->addUnder(item);
+ }
+}
+
} // End of namespace Titanic