aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_rooms_glyphs.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-05-01 09:24:42 -0400
committerPaul Gilbert2016-07-10 16:37:58 -0400
commit6b97394ebd577326c8818cfa02b08c119beab8c0 (patch)
treecb7f4856c924806974e6986043ad46d63a0d79ac /engines/titanic/pet_control/pet_rooms_glyphs.cpp
parentad02fa76e0bbb81f28610a100aa988f082067c71 (diff)
downloadscummvm-rg350-6b97394ebd577326c8818cfa02b08c119beab8c0.tar.gz
scummvm-rg350-6b97394ebd577326c8818cfa02b08c119beab8c0.tar.bz2
scummvm-rg350-6b97394ebd577326c8818cfa02b08c119beab8c0.zip
TITANIC: Fully implement PET Rooms loading/saving
Diffstat (limited to 'engines/titanic/pet_control/pet_rooms_glyphs.cpp')
-rw-r--r--engines/titanic/pet_control/pet_rooms_glyphs.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/engines/titanic/pet_control/pet_rooms_glyphs.cpp b/engines/titanic/pet_control/pet_rooms_glyphs.cpp
index 6b762d890b..57c6e8568c 100644
--- a/engines/titanic/pet_control/pet_rooms_glyphs.cpp
+++ b/engines/titanic/pet_control/pet_rooms_glyphs.cpp
@@ -32,12 +32,10 @@ CPetRoomsGlyph::CPetRoomsGlyph() : CPetGlyph(),
_field50(nullptr), _field54(nullptr), _field58(nullptr), _field5C(nullptr) {
}
-void CPetRoomsGlyph::set34(int val) {
- _field34 = val;
-}
-
-void CPetRoomsGlyph::set38(int val) {
- _field38 = val;
+CPetRoomsGlyph::CPetRoomsGlyph(int val) : CPetGlyph(),
+ _field34(val), _field38(0), _field3C(0),
+ _field40(nullptr), _field44(nullptr), _field48(nullptr), _field4C(nullptr),
+ _field50(nullptr), _field54(nullptr), _field58(nullptr), _field5C(nullptr) {
}
bool CPetRoomsGlyph::setup(CPetControl *petControl, CPetGlyphs *owner) {
@@ -87,7 +85,7 @@ void CPetRoomsGlyph::proc39() {
/*------------------------------------------------------------------------*/
-void CPetRoomsGlyphs::save(SimpleFile *file, int indent) const {
+void CPetRoomsGlyphs::save2(SimpleFile *file, int indent) const {
file->writeNumberLine(size(), indent);
for (const_iterator i = begin(); i != end(); ++i)