aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/dreamweb/stubs.h2
-rw-r--r--engines/dreamweb/talk.cpp13
2 files changed, 6 insertions, 9 deletions
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index b1406182f0..bf5f5c54df 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -173,7 +173,7 @@
void madmanRun();
void decide();
void talk();
- void hangOnPQ();
+ bool hangOnPQ();
void showGun();
void endGame();
void newPlace();
diff --git a/engines/dreamweb/talk.cpp b/engines/dreamweb/talk.cpp
index 834109b1dc..f13f40e229 100644
--- a/engines/dreamweb/talk.cpp
+++ b/engines/dreamweb/talk.cpp
@@ -173,8 +173,7 @@ void DreamGenContext::doSomeTalk() {
data.byte(kPointermode) = 3;
workToScreenM();
cx = 180;
- hangOnPQ();
- if (flags.c())
+ if (hangOnPQ())
return;
data.byte(kTalkpos)++;
@@ -213,8 +212,7 @@ void DreamGenContext::doSomeTalk() {
data.byte(kPointermode) = 3;
workToScreenM();
cx = 180;
- hangOnPQ();
- if (flags.c())
+ if (hangOnPQ())
return;
}
@@ -222,7 +220,7 @@ void DreamGenContext::doSomeTalk() {
}
}
-void DreamGenContext::hangOnPQ() {
+bool DreamGenContext::hangOnPQ() {
data.byte(kGetback) = 0;
RectWithCallback<DreamBase> quitList[] = {
@@ -248,8 +246,7 @@ void DreamGenContext::hangOnPQ() {
delPointer();
data.byte(kPointermode) = 0;
cancelCh1();
- flags._c = true;
- return;
+ return true;
}
if (data.byte(kSpeechloaded) == 1 && data.byte(kCh1playing) == 255) {
@@ -261,7 +258,7 @@ void DreamGenContext::hangOnPQ() {
delPointer();
data.byte(kPointermode) = 0;
- flags._c = false;
+ return false;
}
void DreamGenContext::redes() {