diff options
author | Paul Gilbert | 2016-02-27 10:39:01 -0500 |
---|---|---|
committer | Paul Gilbert | 2016-02-27 10:39:01 -0500 |
commit | dd5fdcd8d9a69a11547cb96f370a8d6717eb5114 (patch) | |
tree | 1e35e5b48ec11868d55df7600fd7d71d3b95e2cf /engines/titanic/carry | |
parent | b93f4e70777275cf259d3ac763d10134805b4042 (diff) | |
download | scummvm-rg350-dd5fdcd8d9a69a11547cb96f370a8d6717eb5114.tar.gz scummvm-rg350-dd5fdcd8d9a69a11547cb96f370a8d6717eb5114.tar.bz2 scummvm-rg350-dd5fdcd8d9a69a11547cb96f370a8d6717eb5114.zip |
TITANIC: Fix CCarry loading/saving
Diffstat (limited to 'engines/titanic/carry')
-rw-r--r-- | engines/titanic/carry/carry.cpp | 15 | ||||
-rw-r--r-- | engines/titanic/carry/carry.h | 5 |
2 files changed, 9 insertions, 11 deletions
diff --git a/engines/titanic/carry/carry.cpp b/engines/titanic/carry/carry.cpp index 604c952658..74544896dd 100644 --- a/engines/titanic/carry/carry.cpp +++ b/engines/titanic/carry/carry.cpp @@ -24,10 +24,9 @@ namespace Titanic { -CCarry::CCarry() : CGameObject(), _fieldC8(0), _fieldCC(0), - _fieldDC(0), _fieldE0(1), _fieldFC(0), _field100(0), - _field104(0), _field108(0), _field10C(0), _field110(0), - _field120(0), _field124(0), _field128(0), +CCarry::CCarry() : CGameObject(), _fieldDC(0), _fieldE0(1), + _field100(0), _field104(0), _field108(0), _field10C(0), + _field110(0), _field120(0), _field124(0), _field128(0), _string1("None"), _string2("NULL"), _string3("That doesn't seem to do anything."), @@ -37,13 +36,13 @@ CCarry::CCarry() : CGameObject(), _fieldC8(0), _fieldCC(0), void CCarry::save(SimpleFile *file, int indent) const { file->writeNumberLine(1, indent); file->writeQuotedLine(_string1, indent); - file->writeNumberLine(_fieldC8, indent); + file->writePoint(_pos1, indent); file->writeQuotedLine(_string2, indent); file->writeNumberLine(_fieldDC, indent); file->writeNumberLine(_fieldE0, indent); file->writeQuotedLine(_string3, indent); file->writeQuotedLine(_string4, indent); - file->writeNumberLine(_fieldFC, indent); + file->writePoint(_pos2, indent); file->writeNumberLine(_field104, indent); file->writeNumberLine(_field108, indent); file->writeNumberLine(_field10C, indent); @@ -59,13 +58,13 @@ void CCarry::save(SimpleFile *file, int indent) const { void CCarry::load(SimpleFile *file) { file->readNumber(); _string1 = file->readString(); - _fieldC8 = file->readNumber(); + _pos1 = file->readPoint(); _string2 = file->readString(); _fieldDC = file->readNumber(); _fieldE0 = file->readNumber(); _string3 = file->readString(); _string4 = file->readString(); - _fieldFC = file->readNumber(); + _pos2 = file->readPoint(); _field104 = file->readNumber(); _field108 = file->readNumber(); _field10C = file->readNumber(); diff --git a/engines/titanic/carry/carry.h b/engines/titanic/carry/carry.h index 4bf98b7132..b83ecb7aca 100644 --- a/engines/titanic/carry/carry.h +++ b/engines/titanic/carry/carry.h @@ -30,14 +30,13 @@ namespace Titanic { class CCarry : public CGameObject { private: CString _string1; - int _fieldC8; - int _fieldCC; + Common::Point _pos1; CString _string2; int _fieldDC; int _fieldE0; CString _string3; CString _string4; - int _fieldFC; + Common::Point _pos2; int _field100; int _field104; int _field108; |