aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_rooms_glyphs.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-30 23:27:48 -0400
committerPaul Gilbert2016-07-10 16:37:57 -0400
commitad02fa76e0bbb81f28610a100aa988f082067c71 (patch)
tree3397cab420e98b8ff7728c06e23733a9c785ce5e /engines/titanic/pet_control/pet_rooms_glyphs.cpp
parentce2a9c6f1ba75eedc917deffb79b2531a3d41645 (diff)
downloadscummvm-rg350-ad02fa76e0bbb81f28610a100aa988f082067c71.tar.gz
scummvm-rg350-ad02fa76e0bbb81f28610a100aa988f082067c71.tar.bz2
scummvm-rg350-ad02fa76e0bbb81f28610a100aa988f082067c71.zip
TITANIC: Implement PET Rooms glyphs saving logic
Diffstat (limited to 'engines/titanic/pet_control/pet_rooms_glyphs.cpp')
-rw-r--r--engines/titanic/pet_control/pet_rooms_glyphs.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/engines/titanic/pet_control/pet_rooms_glyphs.cpp b/engines/titanic/pet_control/pet_rooms_glyphs.cpp
index c45e0389ce..6b762d890b 100644
--- a/engines/titanic/pet_control/pet_rooms_glyphs.cpp
+++ b/engines/titanic/pet_control/pet_rooms_glyphs.cpp
@@ -72,8 +72,9 @@ int CPetRoomsGlyph::proc29(const Point &pt) {
return 0;
}
-void CPetRoomsGlyph::proc32() {
-
+void CPetRoomsGlyph::save2(SimpleFile *file, int indent) const {
+ file->writeNumberLine(_field34, indent);
+ file->writeNumberLine(_field3C, indent);
}
int CPetRoomsGlyph::proc33() {
@@ -84,4 +85,13 @@ void CPetRoomsGlyph::proc39() {
}
+/*------------------------------------------------------------------------*/
+
+void CPetRoomsGlyphs::save(SimpleFile *file, int indent) const {
+ file->writeNumberLine(size(), indent);
+
+ for (const_iterator i = begin(); i != end(); ++i)
+ (*i)->save2(file, indent);
+}
+
} // End of namespace Titanic