diff options
Diffstat (limited to 'engines/sherlock/people.cpp')
-rw-r--r-- | engines/sherlock/people.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/engines/sherlock/people.cpp b/engines/sherlock/people.cpp index b3ae135b40..cab4abff89 100644 --- a/engines/sherlock/people.cpp +++ b/engines/sherlock/people.cpp @@ -152,39 +152,6 @@ void Person::goAllTheWay() { } } -void Person::walkToCoords(const Point32 &destPos, int destDir) { - Events &events = *_vm->_events; - People &people = *_vm->_people; - Scene &scene = *_vm->_scene; - Talk &talk = *_vm->_talk; - - CursorId oldCursor = events.getCursor(); - events.setCursor(WAIT); - - _walkDest = Common::Point(destPos.x / FIXED_INT_MULTIPLIER + 10, destPos.y / FIXED_INT_MULTIPLIER); - people._allowWalkAbort = true; - goAllTheWay(); - - // Keep calling doBgAnim until the walk is done - do { - events.pollEventsAndWait(); - scene.doBgAnim(); - } while (!_vm->shouldQuit() && _walkCount); - - if (!talk._talkToAbort) { - // Put character exactly on destination position, and set direction - _position = destPos; - _sequenceNumber = destDir; - gotoStand(); - - // Draw Holmes facing the new direction - scene.doBgAnim(); - - if (!talk._talkToAbort) - events.setCursor(oldCursor); - } -} - /*----------------------------------------------------------------*/ People *People::init(SherlockEngine *vm) { |