diff options
author | Paul Gilbert | 2015-06-11 22:55:36 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-06-11 22:55:36 -0400 |
commit | a97715f9dcca2022a8f502ded4e4843f076b4687 (patch) | |
tree | 8aeba9580944a54bf0ece25e7f18f3a2b014c7e4 /engines/sherlock/people.cpp | |
parent | a3e75c2a498644eee386877fcbd30f95014778d7 (diff) | |
download | scummvm-rg350-a97715f9dcca2022a8f502ded4e4843f076b4687.tar.gz scummvm-rg350-a97715f9dcca2022a8f502ded4e4843f076b4687.tar.bz2 scummvm-rg350-a97715f9dcca2022a8f502ded4e4843f076b4687.zip |
SHERLOCK: Refactor gotoStand into Person classes
Diffstat (limited to 'engines/sherlock/people.cpp')
-rw-r--r-- | engines/sherlock/people.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sherlock/people.cpp b/engines/sherlock/people.cpp index a7434ae3b7..bb95c51f0f 100644 --- a/engines/sherlock/people.cpp +++ b/engines/sherlock/people.cpp @@ -423,7 +423,7 @@ assert(_data[PLAYER]->_position.y >= 10000);/***DEBUG****/ _oldWalkSequence = _data[PLAYER]->_sequenceNumber; if (!_data[PLAYER]->_walkCount) - gotoStand(*_data[PLAYER]); + _data[PLAYER]->gotoStand(); // If the sequence is the same as when we started, then Holmes was // standing still and we're trying to re-stand him, so reset Holmes' @@ -456,7 +456,7 @@ void People::walkToCoords(const Point32 &destPos, int destDir) { assert(_data[PLAYER]->_position.y >= 10000);/***DEBUG****/ _data[PLAYER]->_sequenceNumber = destDir; - gotoStand(*_data[PLAYER]); + _data[PLAYER]->gotoStand(); // Draw Holmes facing the new direction scene.doBgAnim(); |