diff options
author | Paul Gilbert | 2015-07-31 20:07:03 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-07-31 20:07:03 -0400 |
commit | 90802cedbc8a75ec6c6bf297f01fb357ab5fcb03 (patch) | |
tree | 269fd6e2a298a1644078961c6271cc835c37fe22 | |
parent | 238ec804cf075e36581f42430a13527febbd97b5 (diff) | |
download | scummvm-rg350-90802cedbc8a75ec6c6bf297f01fb357ab5fcb03.tar.gz scummvm-rg350-90802cedbc8a75ec6c6bf297f01fb357ab5fcb03.tar.bz2 scummvm-rg350-90802cedbc8a75ec6c6bf297f01fb357ab5fcb03.zip |
SHERLOCK: RT: Fix saving so Watson's walk sequences can be set on loading
-rw-r--r-- | engines/sherlock/tattoo/tattoo_people.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/sherlock/tattoo/tattoo_people.cpp b/engines/sherlock/tattoo/tattoo_people.cpp index 94a40780e6..cc5872e8c8 100644 --- a/engines/sherlock/tattoo/tattoo_people.cpp +++ b/engines/sherlock/tattoo/tattoo_people.cpp @@ -971,7 +971,14 @@ void TattooPerson::synchronize(Serializer &s) { s.syncAsSint32LE(_position.x); s.syncAsSint32LE(_position.y); s.syncAsSint16LE(_sequenceNumber); - s.syncAsSint16LE(_type); + + if (s.isSaving()) { + SpriteType type = (_type == INVALID && _walkLoaded) ? HIDDEN_CHARACTER : _type; + s.syncAsSint16LE(type); + } else { + s.syncAsSint16LE(_type); + } + s.syncString(_walkVGSName); s.syncString(_description); s.syncString(_examine); |