diff options
Diffstat (limited to 'engines/pink/objects/actors/lead_actor.cpp')
-rw-r--r-- | engines/pink/objects/actors/lead_actor.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/engines/pink/objects/actors/lead_actor.cpp b/engines/pink/objects/actors/lead_actor.cpp index 4d09281d29..0c59c2e842 100644 --- a/engines/pink/objects/actors/lead_actor.cpp +++ b/engines/pink/objects/actors/lead_actor.cpp @@ -177,10 +177,10 @@ void LeadActor::onKeyboardButtonClick(Common::KeyCode code) { case kMoving: switch (code) { case Common::KEYCODE_ESCAPE: - // set unk variables + setReadyAfterWalk(); // Fall Through intended case Common::KEYCODE_SPACE: - //skip walking animation + _walkMgr->skip(); default: break; } @@ -280,7 +280,7 @@ void LeadActor::onInventoryClosed(bool isItemClicked) { forceUpdateCursor(); } -void LeadActor::onWalkEnd() { +void LeadActor::onWalkEnd(const Common::String &stopName) { State oldNextState = _nextState; _state = kReady; _nextState = kUnk_Loading; @@ -290,6 +290,11 @@ void LeadActor::onWalkEnd() { else sendLeftClickMessage(_recipient); } + else { + Action *action = findAction(stopName); + assert(action); + setAction(action); + } } void LeadActor::onPDAClose() { |