aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/stubs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/dreamweb/stubs.cpp')
-rw-r--r--engines/dreamweb/stubs.cpp22
1 files changed, 10 insertions, 12 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index fed7a39863..767db2b0da 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -1919,19 +1919,17 @@ void DreamGenContext::showcity() {
}
void DreamGenContext::mainscreen() {
- STACK_CHECK;
data.byte(kInmaparea) = 0;
- bx = offset_mainlist;
- _cmp(data.byte(kWatchon), 1);
- if (flags.z())
- goto checkmain;
- bx = offset_mainlist2;
-checkmain:
- checkcoords();
- _cmp(data.byte(kWalkandexam), 0);
- if (flags.z())
- return /* (finishmain) */;
- walkandexamine();
+ if (data.byte(kWatchon) == 1) {
+ bx = offset_mainlist;
+ checkcoords();
+ } else {
+ bx = offset_mainlist2;
+ checkcoords();
+ }
+
+ if (data.byte(kWalkandexam) != 0)
+ walkandexamine();
}