aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorD G Turner2011-12-05 16:02:46 +0000
committerD G Turner2011-12-05 16:02:46 +0000
commit90861ce48afa81dcb934acac161ff75cb3cee80f (patch)
tree5e81db8640485b0bba9a0f7c8b3164e6bc17bb60 /engines
parente19f7898b8b05c0e24b200809cef82b5e56ff1e9 (diff)
downloadscummvm-rg350-90861ce48afa81dcb934acac161ff75cb3cee80f.tar.gz
scummvm-rg350-90861ce48afa81dcb934acac161ff75cb3cee80f.tar.bz2
scummvm-rg350-90861ce48afa81dcb934acac161ff75cb3cee80f.zip
DREAMWEB: 'biblequote' ported to C++
Diffstat (limited to 'engines')
-rw-r--r--engines/dreamweb/dreamgen.cpp27
-rw-r--r--engines/dreamweb/dreamgen.h1
-rw-r--r--engines/dreamweb/stubs.cpp31
-rw-r--r--engines/dreamweb/stubs.h1
4 files changed, 32 insertions, 28 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index 6e44289078..7c92c4fd9e 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -2396,33 +2396,6 @@ void DreamGenContext::gettingShot() {
clearBeforeLoad();
}
-void DreamGenContext::bibleQuote() {
- STACK_CHECK;
- mode640x480();
- dx = 1100;
- showPCX();
- fadeScreenUps();
- cx = 80;
- hangOne();
- _cmp(data.byte(kLasthardkey), 1);
- if (flags.z())
- goto biblequotearly;
- cx = 560;
- hangOne();
- _cmp(data.byte(kLasthardkey), 1);
- if (flags.z())
- goto biblequotearly;
- fadeScreenDowns();
- cx = 200;
- hangOne();
- _cmp(data.byte(kLasthardkey), 1);
- if (flags.z())
- goto biblequotearly;
- cancelCh0();
-biblequotearly:
- data.byte(kLasthardkey) = 0;
-}
-
void DreamGenContext::intro() {
STACK_CHECK;
dx = 1035;
diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h
index e2ffcbed68..ebd7698100 100644
--- a/engines/dreamweb/dreamgen.h
+++ b/engines/dreamweb/dreamgen.h
@@ -787,7 +787,6 @@ public:
void candles1();
void showOpBox();
void clearBeforeLoad();
- void bibleQuote();
void doFade();
void useTrainer();
void dumpCurrent();
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index 754388d130..5b329f2023 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -3148,5 +3148,36 @@ void DreamGenContext::hangOne() {
hangOne(cx);
}
+void DreamGenContext::bibleQuote() {
+ mode640x480();
+
+ showPCX("DREAMWEB.I00");
+ fadeScreenUps();
+
+ hangOne(80);
+ if (data.byte(kLasthardkey) == 1) {
+ data.byte(kLasthardkey) = 0;
+ return; // "biblequotearly"
+ }
+
+ hangOne(560);
+ if (data.byte(kLasthardkey) == 1) {
+ data.byte(kLasthardkey) = 0;
+ return; // "biblequotearly"
+ }
+
+ fadeScreenDowns();
+
+ hangOne(200);
+ if (data.byte(kLasthardkey) == 1) {
+ data.byte(kLasthardkey) = 0;
+ return; // "biblequotearly"
+ }
+
+ cancelCh0();
+
+ data.byte(kLasthardkey) = 0;
+}
+
} /*namespace dreamgen */
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index 170d10be1f..2715863557 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -451,5 +451,6 @@
void hangOne();
void showPCX(const ::Common::String &name);
void showPCX();
+ void bibleQuote();
#endif