aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2011-12-06 08:28:34 +0100
committerWillem Jan Palenstijn2011-12-06 08:36:03 +0100
commite9b91b86a0859e1911d8a26193548bb3fa511920 (patch)
tree02cae93708acdd2024bc590fc29d4a60a180e56b
parent0d768ebe41439e6aaf013635bf32c5e6dc4092cd (diff)
downloadscummvm-rg350-e9b91b86a0859e1911d8a26193548bb3fa511920.tar.gz
scummvm-rg350-e9b91b86a0859e1911d8a26193548bb3fa511920.tar.bz2
scummvm-rg350-e9b91b86a0859e1911d8a26193548bb3fa511920.zip
DREAMWEB: Fix getBackToOps and setWalk
-rw-r--r--engines/dreamweb/pathfind.cpp2
-rw-r--r--engines/dreamweb/stubs.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/dreamweb/pathfind.cpp b/engines/dreamweb/pathfind.cpp
index 6b49a879ba..1dd616f287 100644
--- a/engines/dreamweb/pathfind.cpp
+++ b/engines/dreamweb/pathfind.cpp
@@ -93,7 +93,7 @@ void DreamGenContext::setWalk() {
} else {
data.byte(kDestination) = data.byte(kPointerspath);
data.byte(kFinaldest) = data.byte(kPointerspath);
- if (data.word(kMousebutton) != 2 || data.word(kMousebutton) == 3) {
+ if (data.word(kMousebutton) != 2 || data.word(kCommandtype) == 3) {
autoSetWalk();
} else {
data.byte(kWalkandexam) = 1;
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index b05b554d7a..1a26385888 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -3461,7 +3461,7 @@ void DreamGenContext::getBackToOps() {
}
if (data.word(kMousebutton) != data.word(kOldbutton)) {
- if (!(data.word(kMousebutton) & 1)) {
+ if (data.word(kMousebutton) & 1) {
oldToNames();
data.byte(kGetback) = 2;
}