aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_rooms_glyphs.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-06-23 22:23:03 -0400
committerPaul Gilbert2016-07-15 19:24:29 -0400
commita4b746d24eaeba4cfd05603be2591dc3ec2d10e9 (patch)
tree4ee3f2d11f6b68624923cbb7067511d32564b736 /engines/titanic/pet_control/pet_rooms_glyphs.cpp
parentfd2fd2cdc5e730b43510d2a6b866a9aa67c3c7d5 (diff)
downloadscummvm-rg350-a4b746d24eaeba4cfd05603be2591dc3ec2d10e9.tar.gz
scummvm-rg350-a4b746d24eaeba4cfd05603be2591dc3ec2d10e9.tar.bz2
scummvm-rg350-a4b746d24eaeba4cfd05603be2591dc3ec2d10e9.zip
TITANIC: Added further PET Rooms Glyph method
Diffstat (limited to 'engines/titanic/pet_control/pet_rooms_glyphs.cpp')
-rw-r--r--engines/titanic/pet_control/pet_rooms_glyphs.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/titanic/pet_control/pet_rooms_glyphs.cpp b/engines/titanic/pet_control/pet_rooms_glyphs.cpp
index 520a649688..7f6ebd6898 100644
--- a/engines/titanic/pet_control/pet_rooms_glyphs.cpp
+++ b/engines/titanic/pet_control/pet_rooms_glyphs.cpp
@@ -168,8 +168,10 @@ void CPetRoomsGlyph::save2(SimpleFile *file, int indent) const {
file->writeNumberLine(_mode, indent);
}
-int CPetRoomsGlyph::proc33() {
- return 1;
+bool CPetRoomsGlyph::proc33(CPetGlyph *glyph) {
+ CPetRoomsGlyph *roomGlyph = static_cast<CPetRoomsGlyph *>(glyph);
+
+ return proc33(glyph) && _roomFlags == roomGlyph->_roomFlags;
}
void CPetRoomsGlyph::loadFlags(SimpleFile *file, int val) {