diff options
author | Paul Gilbert | 2015-06-12 23:13:21 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-06-12 23:13:21 -0400 |
commit | 6221c1de82bae650158b54a4b04f8f319416ac63 (patch) | |
tree | 6851d7d6b98671610e53a8466c81b443521ccebf /engines/sherlock/talk.cpp | |
parent | 5dc79a8f3272f8e5c9131fac925d4533a25ab4d9 (diff) | |
download | scummvm-rg350-6221c1de82bae650158b54a4b04f8f319416ac63.tar.gz scummvm-rg350-6221c1de82bae650158b54a4b04f8f319416ac63.tar.bz2 scummvm-rg350-6221c1de82bae650158b54a4b04f8f319416ac63.zip |
SHERLOCK: Move walkToCoords from People to Person
Diffstat (limited to 'engines/sherlock/talk.cpp')
-rw-r--r-- | engines/sherlock/talk.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sherlock/talk.cpp b/engines/sherlock/talk.cpp index 65d9d21919..0e9feedd87 100644 --- a/engines/sherlock/talk.cpp +++ b/engines/sherlock/talk.cpp @@ -501,7 +501,7 @@ void Talk::talk(int objNum) { events.setCursor(WAIT); if (obj._lookPosition.y != 0) // Need to walk to character first - people.walkToCoords(obj._lookPosition, obj._lookFacing); + people[PLAYER].walkToCoords(obj._lookPosition, obj._lookFacing); events.setCursor(ARROW); if (!_talkToAbort) @@ -516,7 +516,7 @@ void Talk::talk(int objNum) { events.setCursor(WAIT); if (obj._lookPosition.y != 0) // Walk over to person to talk to - people.walkToCoords(obj._lookPosition, obj._lookFacing); + people[PLAYER].walkToCoords(obj._lookPosition, obj._lookFacing); events.setCursor(ARROW); if (!_talkToAbort) { @@ -1452,7 +1452,7 @@ OpcodeReturn Talk::cmdWalkToCAnimation(const byte *&str) { ++str; CAnim &animation = scene._cAnim[str[0] - 1]; - people.walkToCoords(animation._goto[0], animation._goto[0]._facing); + people[PLAYER].walkToCoords(animation._goto[0], animation._goto[0]._facing); return _talkToAbort ? RET_EXIT : RET_SUCCESS; } |