diff options
author | Bertrand Augereau | 2011-11-30 14:30:40 +0100 |
---|---|---|
committer | Bertrand Augereau | 2011-11-30 14:30:40 +0100 |
commit | 19daa15f8e3da59b1f32663da65a138c6c2264f7 (patch) | |
tree | 0291e50aa9e2e8047a03b932a9373ae9385d0b6e /engines | |
parent | 5eb79fc6f4fd1c96ed8ddbed939a2e9009373688 (diff) | |
download | scummvm-rg350-19daa15f8e3da59b1f32663da65a138c6c2264f7.tar.gz scummvm-rg350-19daa15f8e3da59b1f32663da65a138c6c2264f7.tar.bz2 scummvm-rg350-19daa15f8e3da59b1f32663da65a138c6c2264f7.zip |
DREAMWEB: 'drawfloor' ported to C++
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 18 | ||||
-rw-r--r-- | engines/dreamweb/dreamgen.h | 4 | ||||
-rw-r--r-- | engines/dreamweb/stubs.cpp | 17 | ||||
-rw-r--r-- | engines/dreamweb/stubs.h | 1 |
4 files changed, 19 insertions, 21 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index 98c9855ad3..5e0520e1ff 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -4827,24 +4827,6 @@ beforethistext: goto shuffletextads; } -void DreamGenContext::drawfloor() { - STACK_CHECK; - push(es); - push(bx); - eraseoldobs(); - drawflags(); - calcmapad(); - doblocks(); - showallobs(); - showallfree(); - showallex(); - paneltomap(); - initrain(); - data.byte(kNewobs) = 0; - bx = pop(); - es = pop(); -} - void DreamGenContext::redrawmainscrn() { STACK_CHECK; data.word(kTimecount) = 0; diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h index e8642e83ca..ccffb210ac 100644 --- a/engines/dreamweb/dreamgen.h +++ b/engines/dreamweb/dreamgen.h @@ -340,7 +340,6 @@ public: static const uint16 addr_talk = 0xc480; static const uint16 addr_getback1 = 0xc47c; static const uint16 addr_redrawmainscrn = 0xc478; - static const uint16 addr_drawfloor = 0xc428; static const uint16 addr_deleteextext = 0xc420; static const uint16 addr_deleteexframe = 0xc41c; static const uint16 addr_deleteexobject = 0xc418; @@ -1155,7 +1154,7 @@ public: void gettime(); void candles1(); void fadedos(); - void drawfloor(); + void runendseq(); void loadkeypad(); void findtext1(); void isryanholding(); @@ -1229,7 +1228,6 @@ public: void talk(); void getridoftemp2(); void usebalcony(); - void runendseq(); void decide(); void disablesoundint(); void priesttext(); diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index a566f8f222..c4e2ae18a6 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -2509,5 +2509,22 @@ void DreamGenContext::loadtemptext(const char *fileName) { data.word(kTextfile1) = standardload(fileName); } +void DreamGenContext::drawfloor() { + eraseoldobs(); + drawflags(); + calcmapad(); + push(es); + push(bx); + doblocks(); + bx = pop(); + es = pop(); + showallobs(); + showallfree(); + showallex(); + paneltomap(); + initrain(); + data.byte(kNewobs) = 0; +} + } /*namespace dreamgen */ diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h index 5236ed4ddf..6ac7d41504 100644 --- a/engines/dreamweb/stubs.h +++ b/engines/dreamweb/stubs.h @@ -372,4 +372,5 @@ void loadtemptext(); void loadtemptext(const char *fileName); void loadtraveltext(); + void drawfloor(); |