aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/dreamweb/dreamgen.cpp16
-rw-r--r--engines/dreamweb/dreamgen.h1
-rw-r--r--engines/dreamweb/stubs.h1
-rw-r--r--engines/dreamweb/use.cpp13
4 files changed, 14 insertions, 17 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index d5d1e1884c..fed9eef3dc 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -5088,22 +5088,6 @@ stereoon:
putBackObStuff();
}
-void DreamGenContext::useCooker() {
- STACK_CHECK;
- al = data.byte(kCommand);
- ah = data.byte(kObjecttype);
- checkInside();
- _cmp(cl, (114));
- if (!flags.z())
- goto foodinside;
- showFirstUse();
- putBackObStuff();
- return;
-foodinside:
- showSecondUse();
- putBackObStuff();
-}
-
void DreamGenContext::useAxe() {
STACK_CHECK;
_cmp(data.byte(kReallocation), 22);
diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h
index fcbc61e564..56c7aa62d5 100644
--- a/engines/dreamweb/dreamgen.h
+++ b/engines/dreamweb/dreamgen.h
@@ -613,7 +613,6 @@ public:
void rollEndCredits();
void getKeyAndLogo();
void selectOb();
- void useCooker();
void receptionist();
void selectSlot();
void decide();
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index e8969f2dc0..8b709d850e 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -369,6 +369,7 @@
void useCardReader2();
void useCardReader3();
void usePoolReader();
+ void useCooker();
bool defaultUseHandler(const char *id);
void openTVDoor();
void wearWatch();
diff --git a/engines/dreamweb/use.cpp b/engines/dreamweb/use.cpp
index 044a4fba40..b56ae07864 100644
--- a/engines/dreamweb/use.cpp
+++ b/engines/dreamweb/use.cpp
@@ -1137,4 +1137,17 @@ void DreamGenContext::hotelControl() {
putBackObStuff();
}
+void DreamGenContext::useCooker() {
+ al = data.byte(kCommand);
+ ah = data.byte(kObjecttype);
+ checkInside();
+
+ if (cl == 114)
+ showFirstUse();
+ else
+ showSecondUse(); // Food inside
+
+ putBackObStuff();
+}
+
} // End of namespace DreamGen