diff options
author | Filippos Karapetis | 2011-12-17 13:47:42 +0200 |
---|---|---|
committer | Filippos Karapetis | 2011-12-17 13:48:12 +0200 |
commit | 05c5e224b45f910d9db50e6c9ce451ede31452f2 (patch) | |
tree | 5953e7be76ba1052bef43abeb9bee55879e5f718 /engines/dreamweb/dreamgen.cpp | |
parent | 8dec805d852cff58d3ff52c4d8051ac0a33f93be (diff) | |
download | scummvm-rg350-05c5e224b45f910d9db50e6c9ce451ede31452f2.tar.gz scummvm-rg350-05c5e224b45f910d9db50e6c9ce451ede31452f2.tar.bz2 scummvm-rg350-05c5e224b45f910d9db50e6c9ce451ede31452f2.zip |
DREAMWEB: Port 'findinvpos', 'selectob' to C++ and fix a regression in identifyOb()
Diffstat (limited to 'engines/dreamweb/dreamgen.cpp')
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index 939e8c0127..ff91eb678f 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -1091,36 +1091,6 @@ void DreamGenContext::getSetAd() { es = data.word(kSetdat); } -void DreamGenContext::findInvPos() { - STACK_CHECK; - cx = data.word(kMousex); - _sub(cx, (80)); - bx = -1; -findinv1: - _inc(bx); - _sub(cx, (44)); - if (!flags.c()) - goto findinv1; - cx = data.word(kMousey); - _sub(cx, (58)); - _sub(bx, 5); -findinv2: - _add(bx, 5); - _sub(cx, (44)); - if (!flags.c()) - goto findinv2; - al = data.byte(kRyanpage); - ah = 0; - cx = 10; - _mul(cx); - _add(bx, ax); - al = bl; - data.byte(kLastinvpos) = al; - _add(bx, bx); - es = data.word(kBuffers); - _add(bx, (0+(228*13)+32)); -} - void DreamGenContext::findOpenPos() { STACK_CHECK; cx = data.word(kMousex); @@ -2736,45 +2706,6 @@ lookcolon: goto lookcolon; } -void DreamGenContext::selectOb() { - STACK_CHECK; - findInvPos(); - ax = es.word(bx); - _cmp(al, 255); - if (!flags.z()) - goto canselectob; - blank(); - return; -canselectob: - data.byte(kWithobject) = al; - data.byte(kWithtype) = ah; - _cmp(ax, data.word(kOldsubject)); - if (!flags.z()) - goto diffsub3; - _cmp(data.byte(kCommandtype), 221); - if (flags.z()) - goto alreadyselob; - data.byte(kCommandtype) = 221; -diffsub3: - data.word(kOldsubject) = ax; - bx = ax; - al = 0; - commandWithOb(); -alreadyselob: - ax = data.word(kMousebutton); - _cmp(ax, data.word(kOldbutton)); - if (flags.z()) - return /* (notselob) */; - _and(ax, 1); - if (!flags.z()) - goto doselob; - return; -doselob: - delPointer(); - data.byte(kInvopen) = 0; - useRoutine(); -} - void DreamGenContext::showDiaryKeys() { STACK_CHECK; _cmp(data.byte(kPresscount), 0); |