aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/use.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2011-12-26 22:31:50 +0200
committerFilippos Karapetis2011-12-26 22:31:50 +0200
commit1ba4f0a1a8965ee141987693770d2bcd3b74c292 (patch)
tree219b94744b859c5acce9a92483dccf15bd0bb47d /engines/dreamweb/use.cpp
parent4c66f74b58e9a2c191f22a37f485047dd19be131 (diff)
downloadscummvm-rg350-1ba4f0a1a8965ee141987693770d2bcd3b74c292.tar.gz
scummvm-rg350-1ba4f0a1a8965ee141987693770d2bcd3b74c292.tar.bz2
scummvm-rg350-1ba4f0a1a8965ee141987693770d2bcd3b74c292.zip
Revert "DREAMWEB: Remove dead code and move most functions to DreamBase"
This reverts commit 4c66f74b58e9a2c191f22a37f485047dd19be131. These functions aren't ready to be moved yet till the remaining two are finished, and they're so crossreferenced that the safest thing to do is revert this commit and break it down to smaller chunks
Diffstat (limited to 'engines/dreamweb/use.cpp')
-rw-r--r--engines/dreamweb/use.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/dreamweb/use.cpp b/engines/dreamweb/use.cpp
index 0f31c766b5..25ed8d50e5 100644
--- a/engines/dreamweb/use.cpp
+++ b/engines/dreamweb/use.cpp
@@ -1494,7 +1494,7 @@ void DreamBase::useAxe() {
removeObFromInv();
}
-void DreamBase::useKey() {
+void DreamGenContext::useKey() {
switch(data.byte(kLocation)) {
case 5:
case 30:
@@ -1512,6 +1512,7 @@ void DreamBase::useKey() {
if (data.byte(kMapx) == 11 && data.byte(kMapy) == 10) {
showPuzText(3, 300);
data.byte(kNewlocation) = 30;
+ al = 2;
fadeScreenDown();
showFirstUse();
putBackObStuff();