aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/people.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-06-14 00:43:19 -0400
committerPaul Gilbert2015-06-14 00:43:19 -0400
commit8629feb410068c084741de1bc2126ed6cd53a4cd (patch)
treee381bdd2a4a8ad92d55fbbab78d6bba6d46b4332 /engines/sherlock/people.cpp
parent5531cf9fd503c3e74b8a32f6b12f2243bac68c06 (diff)
downloadscummvm-rg350-8629feb410068c084741de1bc2126ed6cd53a4cd.tar.gz
scummvm-rg350-8629feb410068c084741de1bc2126ed6cd53a4cd.tar.bz2
scummvm-rg350-8629feb410068c084741de1bc2126ed6cd53a4cd.zip
SHERLOCK: RT: Implemented walk setup
Diffstat (limited to 'engines/sherlock/people.cpp')
-rw-r--r--engines/sherlock/people.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/sherlock/people.cpp b/engines/sherlock/people.cpp
index 349be671a4..7cdaab7626 100644
--- a/engines/sherlock/people.cpp
+++ b/engines/sherlock/people.cpp
@@ -73,8 +73,7 @@ Person::Person() : Sprite() {
void Person::goAllTheWay() {
People &people = *_vm->_people;
Scene &scene = *_vm->_scene;
- Common::Point srcPt(_position.x / FIXED_INT_MULTIPLIER + frameWidth() / 2,
- _position.y / FIXED_INT_MULTIPLIER);
+ Common::Point srcPt = getSourcePoint();
// Get the zone the player is currently in
_srcZone = scene.whichZone(srcPt);