aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/scalpel/scalpel_map.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-06-14 12:10:26 -0400
committerPaul Gilbert2015-06-14 12:10:26 -0400
commit724fe7e4f68b796bd0e5b79cd28c873ba32cdff4 (patch)
tree0ab82e2629db4f1c2d0b2c70479730edb8a7e5ba /engines/sherlock/scalpel/scalpel_map.cpp
parent275064ad23a46d5c034c75201249511e6026556d (diff)
downloadscummvm-rg350-724fe7e4f68b796bd0e5b79cd28c873ba32cdff4.tar.gz
scummvm-rg350-724fe7e4f68b796bd0e5b79cd28c873ba32cdff4.tar.bz2
scummvm-rg350-724fe7e4f68b796bd0e5b79cd28c873ba32cdff4.zip
SHERLOCK: Move _walkDest from People to Person
Diffstat (limited to 'engines/sherlock/scalpel/scalpel_map.cpp')
-rw-r--r--engines/sherlock/scalpel/scalpel_map.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sherlock/scalpel/scalpel_map.cpp b/engines/sherlock/scalpel/scalpel_map.cpp
index 7356deb9a3..08013df900 100644
--- a/engines/sherlock/scalpel/scalpel_map.cpp
+++ b/engines/sherlock/scalpel/scalpel_map.cpp
@@ -250,7 +250,7 @@ int ScalpelMap::show() {
if ((events._released || events._rightReleased) && _point != -1) {
if (people[HOLMES]._walkCount == 0) {
- people._walkDest = _points[_point] + Common::Point(4, 9);
+ people[HOLMES]._walkDest = _points[_point] + Common::Point(4, 9);
_charPoint = _point;
// Start walking to selected location
@@ -454,7 +454,7 @@ void ScalpelMap::walkTheStreets() {
// Add in destination position
people[HOLMES]._walkTo.clear();
- Common::Point destPos = people._walkDest;
+ Common::Point destPos = people[HOLMES]._walkDest;
// Check for any intermediate points between the two locations
if (path[0] || _charPoint > 50 || _oldCharPoint > 50) {
@@ -488,7 +488,7 @@ void ScalpelMap::walkTheStreets() {
people[HOLMES]._walkTo.push(tempPath[idx]);
}
- people._walkDest = people[HOLMES]._walkTo.pop() + Common::Point(12, 6);
+ people[HOLMES]._walkDest = people[HOLMES]._walkTo.pop() + Common::Point(12, 6);
people[HOLMES].setWalking();
}
} else {