diff options
author | Filippos Karapetis | 2011-12-15 12:15:22 +0200 |
---|---|---|
committer | Filippos Karapetis | 2011-12-15 12:15:22 +0200 |
commit | 93bf275f4c9ef168ceab23a07a1219d2c78b65ec (patch) | |
tree | 62bded48435bd7955d706b06d5bcf326f3ca8d44 /engines/dreamweb/dreamgen.cpp | |
parent | faab2d761d103de3c019dc1c979d3940191abc96 (diff) | |
download | scummvm-rg350-93bf275f4c9ef168ceab23a07a1219d2c78b65ec.tar.gz scummvm-rg350-93bf275f4c9ef168ceab23a07a1219d2c78b65ec.tar.bz2 scummvm-rg350-93bf275f4c9ef168ceab23a07a1219d2c78b65ec.zip |
DREAMWEB: Port 'helicopter' to C++
Diffstat (limited to 'engines/dreamweb/dreamgen.cpp')
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index dfeda18d6c..2ee3d512cd 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -26,71 +26,6 @@ namespace DreamGen { -void DreamGenContext::helicopter() { - STACK_CHECK; - ax = es.word(bx+3); - _cmp(ax, 203); - if (flags.z()) - goto heliwon; - checkSpeed(); - if (!flags.z()) - goto helispeed; - ax = es.word(bx+3); - _inc(ax); - _cmp(ax, 53); - if (!flags.z()) - goto notbeforehdead; - _inc(data.byte(kCombatcount)); - _cmp(data.byte(kCombatcount), 8); - if (flags.c()) - goto waitabit; - data.byte(kMandead) = 2; -waitabit: - ax = 49; - goto gotheliframe; -notbeforehdead: - _cmp(ax, 9); - if (!flags.z()) - goto gotheliframe; - _dec(ax); - _cmp(data.byte(kLastweapon), 1); - if (!flags.z()) - goto notgunonheli; - data.byte(kLastweapon) = -1; - ax = 55; - goto gotheliframe; -notgunonheli: - ax = 5; - _inc(data.byte(kCombatcount)); - _cmp(data.byte(kCombatcount), 20); - if (!flags.z()) - goto gotheliframe; - data.byte(kCombatcount) = 0; - ax = 9; -gotheliframe: - es.word(bx+3) = ax; -helispeed: - showGameReel(); - al = data.byte(kMapx); - es.byte(bx+1) = al; - ax = es.word(bx+3); - _cmp(ax, 9); - if (!flags.c()) - goto notwaitingheli; - _cmp(data.byte(kCombatcount), 7); - if (flags.c()) - goto notwaitingheli; - data.byte(kPointermode) = 2; - data.word(kWatchingtime) = 0; - return; -notwaitingheli: - data.byte(kPointermode) = 0; - data.word(kWatchingtime) = 2; - return; -heliwon: - data.byte(kPointermode) = 0; -} - void DreamGenContext::mugger() { STACK_CHECK; ax = es.word(bx+3); |