diff options
author | Paul Gilbert | 2015-06-12 20:53:56 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-06-12 20:53:56 -0400 |
commit | 69b4ae6c6c612a5e130b0efca5a3c4869688f965 (patch) | |
tree | 0a2488eadd2fbed5c8ce56cda4293fa73620d8e3 /engines/sherlock/talk.cpp | |
parent | 1a4d723e6099fe06055b46d7fa9f07e7158d271b (diff) | |
download | scummvm-rg350-69b4ae6c6c612a5e130b0efca5a3c4869688f965.tar.gz scummvm-rg350-69b4ae6c6c612a5e130b0efca5a3c4869688f965.tar.bz2 scummvm-rg350-69b4ae6c6c612a5e130b0efca5a3c4869688f965.zip |
SHERLOCK: RT: Fix loading talk/script statements
Diffstat (limited to 'engines/sherlock/talk.cpp')
-rw-r--r-- | engines/sherlock/talk.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sherlock/talk.cpp b/engines/sherlock/talk.cpp index b27ff3ac9a..5127d1e93b 100644 --- a/engines/sherlock/talk.cpp +++ b/engines/sherlock/talk.cpp @@ -39,7 +39,7 @@ SequenceEntry::SequenceEntry() { /*----------------------------------------------------------------*/ -void Statement::synchronize(Common::SeekableReadStream &s) { +void Statement::load(Common::SeekableReadStream &s, bool isRoseTattoo) { int length; length = s.readUint16LE(); @@ -73,6 +73,7 @@ void Statement::synchronize(Common::SeekableReadStream &s) { _portraitSide = s.readByte(); _quotient = s.readUint16LE(); + _journal = isRoseTattoo ? s.readByte() : 0; } /*----------------------------------------------------------------*/ @@ -581,7 +582,7 @@ void Talk::loadTalkFile(const Common::String &filename) { _statements.resize(talkStream->readByte()); for (uint idx = 0; idx < _statements.size(); ++idx) - _statements[idx].synchronize(*talkStream); + _statements[idx].load(*talkStream, IS_ROSE_TATTOO); delete talkStream; |