diff options
author | whiterandrek | 2018-08-02 21:09:27 +0300 |
---|---|---|
committer | whiterandrek | 2018-08-02 21:09:27 +0300 |
commit | e9fde87cf225380cbd459c7e28c9f24b28f3cf33 (patch) | |
tree | 4a5fe405de7f7241a1040be530d4562cadcaa960 /engines/pink | |
parent | d9b3853decc2d3ac3b500ef3b76f950bd6a6ef4a (diff) | |
download | scummvm-rg350-e9fde87cf225380cbd459c7e28c9f24b28f3cf33.tar.gz scummvm-rg350-e9fde87cf225380cbd459c7e28c9f24b28f3cf33.tar.bz2 scummvm-rg350-e9fde87cf225380cbd459c7e28c9f24b28f3cf33.zip |
PINK: fixed bug when in walking state you choose another location
Diffstat (limited to 'engines/pink')
-rw-r--r-- | engines/pink/objects/walk/walk_mgr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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 { |