aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/people.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-05-26 08:18:50 -0400
committerPaul Gilbert2015-05-26 08:18:50 -0400
commit0cc79979fc27a097037ca580dda78607080d5ac4 (patch)
tree4b94857f4efacc778f2c63d088c61353bc78d451 /engines/sherlock/people.cpp
parente1e39ea3d2e358b47fc26cc52244f536ee2a0a01 (diff)
downloadscummvm-rg350-0cc79979fc27a097037ca580dda78607080d5ac4.tar.gz
scummvm-rg350-0cc79979fc27a097037ca580dda78607080d5ac4.tar.bz2
scummvm-rg350-0cc79979fc27a097037ca580dda78607080d5ac4.zip
SHERLOCK: Fix map display
Diffstat (limited to 'engines/sherlock/people.cpp')
-rw-r--r--engines/sherlock/people.cpp15
1 files changed, 1 insertions, 14 deletions
diff --git a/engines/sherlock/people.cpp b/engines/sherlock/people.cpp
index bac147f489..6beae4817e 100644
--- a/engines/sherlock/people.cpp
+++ b/engines/sherlock/people.cpp
@@ -68,18 +68,6 @@ const char *const WALK_LIB_NAMES[10] = {
/*----------------------------------------------------------------*/
-void WalkSequence::load(Common::SeekableReadStream &s) {
- char buffer[9];
- s.read(buffer, 9);
- _vgsName = Common::String(buffer);
- _horizFlip = s.readByte() != 0;
-
- _sequences.resize(s.readUint16LE());
- s.read(&_sequences[0], _sequences.size());
-}
-
-/*----------------------------------------------------------------*/
-
Person::Person() : Sprite(), _walkLoaded(false), _npcIndex(0), _npcStack(0), _npcPause(false) {
Common::fill(&_npcPath[0], &_npcPath[MAX_NPC_PATH], 0);
}
@@ -156,7 +144,6 @@ void People::reset() {
p._gotoSeq = p._talkSeq = 0;
p._restoreSlot = 0;
p._startSeq = 0;
- p._walkSequences.clear();
p._altImages = nullptr;
p._altSequences = 0;
p._centerWalk = true;
@@ -164,7 +151,7 @@ void People::reset() {
// Load the default walk sequences
p._oldWalkSequence = -1;
-
+ p._walkSequences.clear();
if (IS_SERRATED_SCALPEL) {
p._walkSequences.resize(MAX_HOLMES_SEQUENCE);
for (int seqIdx = 0; seqIdx < MAX_HOLMES_SEQUENCE; ++seqIdx) {