aboutsummaryrefslogtreecommitdiff
path: root/engines/pink
diff options
context:
space:
mode:
authorwhiterandrek2018-08-02 21:09:27 +0300
committerwhiterandrek2018-08-02 21:09:27 +0300
commite9fde87cf225380cbd459c7e28c9f24b28f3cf33 (patch)
tree4a5fe405de7f7241a1040be530d4562cadcaa960 /engines/pink
parentd9b3853decc2d3ac3b500ef3b76f950bd6a6ef4a (diff)
downloadscummvm-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.cpp6
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 {