diff options
Diffstat (limited to 'engines/titanic/true_talk/tt_major_word.cpp')
-rw-r--r-- | engines/titanic/true_talk/tt_major_word.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/engines/titanic/true_talk/tt_major_word.cpp b/engines/titanic/true_talk/tt_major_word.cpp index b56a484aa0..68af628dbb 100644 --- a/engines/titanic/true_talk/tt_major_word.cpp +++ b/engines/titanic/true_talk/tt_major_word.cpp @@ -26,7 +26,7 @@ namespace Titanic { bool TTmajorWord::_staticFlag; -TTmajorWord::TTmajorWord(TTString &str, int val1, int val2, int val3) : +TTmajorWord::TTmajorWord(TTstring &str, int val1, int val2, int val3) : TTword(str, val1, val2), _field2C(val3) { } @@ -39,6 +39,18 @@ TTmajorWord::TTmajorWord(TTmajorWord *src) : TTword(src) { } } +int TTmajorWord::saveData(SimpleFile *file, int val) const { + int result = TTword::save(file); + if (!result) { + file->writeFormat("%1.0d", val); + file->writeFormat("%c", '\n'); + if (_synP) + result = _synP->save(file); + } + + return result; +} + TTword *TTmajorWord::copy() { TTmajorWord *returnWordP = new TTmajorWord(this); returnWordP->_status = _status; |