aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2011-12-10 18:19:46 +0100
committerWillem Jan Palenstijn2011-12-10 18:19:46 +0100
commit15d053a8056cb3b9da20e76e67412e4ef5dd0ae2 (patch)
treee190f073bc7d03c6ec1d75c49496ad3c7b6e3f2c
parent6c443ab5fe561ec6f267fabbfee59fb27a6e7786 (diff)
downloadscummvm-rg350-15d053a8056cb3b9da20e76e67412e4ef5dd0ae2.tar.gz
scummvm-rg350-15d053a8056cb3b9da20e76e67412e4ef5dd0ae2.tar.bz2
scummvm-rg350-15d053a8056cb3b9da20e76e67412e4ef5dd0ae2.zip
DREAMWEB: Fix regression in diaryKeyN
-rw-r--r--engines/dreamweb/stubs.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index 57a2589467..a4cd72dd32 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -4183,6 +4183,11 @@ void DreamGenContext::diaryKeyN() {
commandOnly(23);
}
+ if (!data.word(kMousebutton) ||
+ data.word(kOldbutton) == data.word(kMousebutton) ||
+ data.byte(kPresscount))
+ return; // notkeyn
+
playChannel1(16);
data.byte(kPresscount) = 12;
data.byte(kPressed) = 'N';