diff options
author | Filippos Karapetis | 2011-12-11 20:54:00 +0200 |
---|---|---|
committer | Filippos Karapetis | 2011-12-11 20:54:00 +0200 |
commit | b7de94dd14db4f6a02aca5fab1951e186f30e349 (patch) | |
tree | 43bc665f0b70407a78b2609f70782d1e10789d59 /engines | |
parent | ae98c3dc18295eeee0a4b3f6b5b2fbed2e68b60f (diff) | |
download | scummvm-rg350-b7de94dd14db4f6a02aca5fab1951e186f30e349.tar.gz scummvm-rg350-b7de94dd14db4f6a02aca5fab1951e186f30e349.tar.bz2 scummvm-rg350-b7de94dd14db4f6a02aca5fab1951e186f30e349.zip |
DREAMWEB: Convert 'cantdrop', 'droperror' to C++
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 38 | ||||
-rw-r--r-- | engines/dreamweb/dreamgen.h | 2 | ||||
-rw-r--r-- | engines/dreamweb/stubs.cpp | 26 | ||||
-rw-r--r-- | engines/dreamweb/stubs.h | 2 |
4 files changed, 28 insertions, 40 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index b4e73a268a..42660f4fa3 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -2182,44 +2182,6 @@ notinlift: es.byte(bx) = al; } -void DreamGenContext::dropError() { - STACK_CHECK; - data.byte(kCommandtype) = 255; - delPointer(); - di = 76; - bx = 21; - al = 56; - dl = 240; - printMessage(); - workToScreenM(); - cx = 50; - hangOnP(); - showPanel(); - showMan(); - examIcon(); - data.byte(kCommandtype) = 255; - workToScreenM(); -} - -void DreamGenContext::cantDrop() { - STACK_CHECK; - data.byte(kCommandtype) = 255; - delPointer(); - di = 76; - bx = 21; - al = 24; - dl = 240; - printMessage(); - workToScreenM(); - cx = 50; - hangOnP(); - showPanel(); - showMan(); - examIcon(); - data.byte(kCommandtype) = 255; - workToScreenM(); -} - void DreamGenContext::removeObFromInv() { STACK_CHECK; _cmp(data.byte(kCommand), 100); diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h index 761dde80a7..1861732860 100644 --- a/engines/dreamweb/dreamgen.h +++ b/engines/dreamweb/dreamgen.h @@ -574,7 +574,6 @@ public: void pickupConts(); void nextColon(); void allPalette(); - void cantDrop(); void findInvPos(); void rollEndCredits(); void getKeyAndLogo(); @@ -625,7 +624,6 @@ public: void triggerMessage(); void swapWithOpen(); void dreamweb(); - void dropError(); void checkInside(); void findPathOfPoint(); void getBack1(); diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index a3398568c0..2caaf6c36a 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -4176,4 +4176,30 @@ void DreamGenContext::diaryKeyN() { data.byte(kDiarypage) = 0; } +void DreamGenContext::dropError() { + data.byte(kCommandtype) = 255; + delPointer(); + printMessage(76, 21, 56, 240, 240 & 1); + workToScreenM(); + hangOnP(50); + showPanel(); + showMan(); + examIcon(); + data.byte(kCommandtype) = 255; + workToScreenM(); +} + +void DreamGenContext::cantDrop() { + data.byte(kCommandtype) = 255; + delPointer(); + printMessage(76, 21, 24, 240, 240 & 1); + workToScreenM(); + hangOnP(50); + showPanel(); + showMan(); + examIcon(); + data.byte(kCommandtype) = 255; + workToScreenM(); +} + } // End of namespace DreamGen diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h index 5225878c9a..19ebfac817 100644 --- a/engines/dreamweb/stubs.h +++ b/engines/dreamweb/stubs.h @@ -560,5 +560,7 @@ void diaryKeyP(); void diaryKeyN(); void checkInput(); + void dropError(); + void cantDrop(); #endif |