diff options
author | Filippos Karapetis | 2011-12-06 00:46:06 +0200 |
---|---|---|
committer | Filippos Karapetis | 2011-12-06 00:46:51 +0200 |
commit | 06ef3452b78c2041e8054c10eb6d1929938d1b1b (patch) | |
tree | 0dda36b9426ade50f591cb421cdf4e6c4999268e /engines/dreamweb/dreamgen.cpp | |
parent | dc62da925f7818056c4880e0d8aa134839e17638 (diff) | |
download | scummvm-rg350-06ef3452b78c2041e8054c10eb6d1929938d1b1b.tar.gz scummvm-rg350-06ef3452b78c2041e8054c10eb6d1929938d1b1b.tar.bz2 scummvm-rg350-06ef3452b78c2041e8054c10eb6d1929938d1b1b.zip |
DREAMWEB: 'clearbeforeload', 'clearreels', 'getridofreels' ported to C++
Diffstat (limited to 'engines/dreamweb/dreamgen.cpp')
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index be706bb32b..90b3785f97 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -9636,26 +9636,6 @@ void DreamGenContext::clearChanges() { _stosw(cx, true); } -void DreamGenContext::clearBeforeLoad() { - STACK_CHECK; - _cmp(data.byte(kRoomloaded), 1); - if (!flags.z()) - return /* (noclear) */; - clearReels(); - clearRest(); - data.byte(kRoomloaded) = 0; -} - -void DreamGenContext::clearReels() { - STACK_CHECK; - es = data.word(kReel1); - deallocateMem(); - es = data.word(kReel2); - deallocateMem(); - es = data.word(kReel3); - deallocateMem(); -} - void DreamGenContext::clearRest() { STACK_CHECK; es = data.word(kMapdata); @@ -10279,19 +10259,6 @@ _tmp1: multiGet(); } -void DreamGenContext::getRidOfReels() { - STACK_CHECK; - _cmp(data.byte(kRoomloaded), 0); - if (flags.z()) - return /* (dontgetrid) */; - es = data.word(kReel1); - deallocateMem(); - es = data.word(kReel2); - deallocateMem(); - es = data.word(kReel3); - deallocateMem(); -} - void DreamGenContext::__start() { static const uint8 src[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x13, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |