diff options
author | Filippos Karapetis | 2011-12-06 03:34:36 +0200 |
---|---|---|
committer | Filippos Karapetis | 2011-12-06 03:34:36 +0200 |
commit | bdfd481a68f6a4830f1b18adcf8fe2fa171498b5 (patch) | |
tree | 2fbf78e524dc3bcf3ba3a9ad0c6caf2043d1d102 /engines/dreamweb/dreamgen.cpp | |
parent | e1a53cc455c79ce72415581d01aeacc86ee9a2eb (diff) | |
download | scummvm-rg350-bdfd481a68f6a4830f1b18adcf8fe2fa171498b5.tar.gz scummvm-rg350-bdfd481a68f6a4830f1b18adcf8fe2fa171498b5.tar.bz2 scummvm-rg350-bdfd481a68f6a4830f1b18adcf8fe2fa171498b5.zip |
DREAMWEB: 'settopleft', 'settopright', 'setbotleft', 'setbotright' ported to C++
Diffstat (limited to 'engines/dreamweb/dreamgen.cpp')
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index d5bf1977d0..8279a8dd9b 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -8024,78 +8024,6 @@ doqs: data.byte(kGetback) = 1; } -void DreamGenContext::setTopLeft() { - STACK_CHECK; - _cmp(data.byte(kSymboltopdir), 0); - if (!flags.z()) - { blank(); return; }; - _cmp(data.byte(kCommandtype), 210); - if (flags.z()) - goto alreadytopl; - data.byte(kCommandtype) = 210; - al = 19; - commandOnly(); -alreadytopl: - _cmp(data.word(kMousebutton), 0); - if (flags.z()) - return /* (notopleft) */; - data.byte(kSymboltopdir) = -1; -} - -void DreamGenContext::setTopRight() { - STACK_CHECK; - _cmp(data.byte(kSymboltopdir), 0); - if (!flags.z()) - { blank(); return; }; - _cmp(data.byte(kCommandtype), 211); - if (flags.z()) - goto alreadytopr; - data.byte(kCommandtype) = 211; - al = 20; - commandOnly(); -alreadytopr: - _cmp(data.word(kMousebutton), 0); - if (flags.z()) - return /* (notopright) */; - data.byte(kSymboltopdir) = 1; -} - -void DreamGenContext::setBotLeft() { - STACK_CHECK; - _cmp(data.byte(kSymbolbotdir), 0); - if (!flags.z()) - { blank(); return; }; - _cmp(data.byte(kCommandtype), 212); - if (flags.z()) - goto alreadybotl; - data.byte(kCommandtype) = 212; - al = 21; - commandOnly(); -alreadybotl: - _cmp(data.word(kMousebutton), 0); - if (flags.z()) - return /* (nobotleft) */; - data.byte(kSymbolbotdir) = -1; -} - -void DreamGenContext::setBotRight() { - STACK_CHECK; - _cmp(data.byte(kSymbolbotdir), 0); - if (!flags.z()) - { blank(); return; }; - _cmp(data.byte(kCommandtype), 213); - if (flags.z()) - goto alreadybotr; - data.byte(kCommandtype) = 213; - al = 22; - commandOnly(); -alreadybotr: - _cmp(data.word(kMousebutton), 0); - if (flags.z()) - return /* (nobotright) */; - data.byte(kSymbolbotdir) = 1; -} - void DreamGenContext::dumpSymbol() { STACK_CHECK; data.byte(kNewtextline) = 0; |