diff options
author | Filippos Karapetis | 2011-12-08 12:18:52 +0200 |
---|---|---|
committer | Filippos Karapetis | 2011-12-08 12:18:52 +0200 |
commit | 1d0ba8e8e6cb9cb6ec20492972d2b0b06c349c06 (patch) | |
tree | 1bf199ec330df6e945173a068e1dbecdaf027d60 /engines | |
parent | d6c371e6ff6759aea643440b6b42b261bb4ff528 (diff) | |
download | scummvm-rg350-1d0ba8e8e6cb9cb6ec20492972d2b0b06c349c06.tar.gz scummvm-rg350-1d0ba8e8e6cb9cb6ec20492972d2b0b06c349c06.tar.bz2 scummvm-rg350-1d0ba8e8e6cb9cb6ec20492972d2b0b06c349c06.zip |
DREAMWEB: Port 'showcooker' to C++
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 16 | ||||
-rw-r--r-- | engines/dreamweb/dreamgen.h | 1 | ||||
-rw-r--r-- | engines/dreamweb/stubs.h | 1 | ||||
-rw-r--r-- | engines/dreamweb/use.cpp | 13 |
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 |