Skip to content

Commit

Permalink
DREAMWEB: Fixed quit from keypad screen
Browse files Browse the repository at this point in the history
  • Loading branch information
whoozle committed Jun 25, 2011
1 parent 14a5e0a commit a63e593
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion devtools/tasmrecover/dreamweb/keypad.asm
Expand Up @@ -18,7 +18,11 @@ Entercode proc near
mov presspointer,0
mov getback,0

keypadloop: call delpointer
keypadloop:
cmp quitrequested, 0
jnz numberright

call delpointer
call readmouse
call showkeypad
call showpointer
Expand Down
5 changes: 4 additions & 1 deletion engines/dreamweb/dreamgen.cpp
Expand Up @@ -14360,10 +14360,14 @@ void DreamGenContext::entercode() {
data.word(kPresspointer) = 0;
data.byte(kGetback) = 0;
keypadloop:
_cmp(data.byte(kQuitrequested), 0);
if (!flags.z())
goto numberright;
delpointer();
readmouse();
showkeypad();
showpointer();
vsync();
_cmp(data.byte(kPresscount), 0);
if (flags.z())
goto nopresses;
Expand Down Expand Up @@ -14630,7 +14634,6 @@ void DreamGenContext::showkeypad() {
di = (36+112)+31;
bx = (72)+59;
singlekey();
vsync();
_cmp(data.byte(kLightcount), 0);
if (flags.z())
return /* (notenter) */;
Expand Down

0 comments on commit a63e593

Please sign in to comment.