From e9fde87cf225380cbd459c7e28c9f24b28f3cf33 Mon Sep 17 00:00:00 2001 From: whiterandrek Date: Thu, 2 Aug 2018 21:09:27 +0300 Subject: PINK: fixed bug when in walking state you choose another location --- engines/pink/objects/walk/walk_mgr.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines') diff --git a/engines/pink/objects/walk/walk_mgr.cpp b/engines/pink/objects/walk/walk_mgr.cpp index ab221921bc..c07932de55 100644 --- a/engines/pink/objects/walk/walk_mgr.cpp +++ b/engines/pink/objects/walk/walk_mgr.cpp @@ -60,9 +60,6 @@ void WalkMgr::toConsole() { } void WalkMgr::start(WalkLocation *destination) { - if (_isWalking) - return; - if (_current.name.empty()) { _current.name = _locations[0]->getName(); _current.coords = getLocationCoordinates(_locations[0]->getName()); @@ -70,6 +67,9 @@ void WalkMgr::start(WalkLocation *destination) { _destination = destination; + if (_isWalking) + return; + if (_current.name == _destination->getName()) { end(); } else { -- cgit v1.2.3