aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorBertrand Augereau2011-08-30 02:45:53 +0200
committerBertrand Augereau2011-08-30 02:45:53 +0200
commit5bfe1f22d59471c50e0a6e65fb2dbf79e67fdf89 (patch)
tree38c21db80fbd01e745707ed2d70f18a268e8cc83 /engines
parent7624083cdcb80c044bd34391a4d536e12bb2320d (diff)
downloadscummvm-rg350-5bfe1f22d59471c50e0a6e65fb2dbf79e67fdf89.tar.gz
scummvm-rg350-5bfe1f22d59471c50e0a6e65fb2dbf79e67fdf89.tar.bz2
scummvm-rg350-5bfe1f22d59471c50e0a6e65fb2dbf79e67fdf89.zip
DREAMWEB: 'paneltomap' ported to C++
Diffstat (limited to 'engines')
-rw-r--r--engines/dreamweb/dreamgen.cpp14
-rw-r--r--engines/dreamweb/dreamgen.h3
-rw-r--r--engines/dreamweb/stubs.h2
-rw-r--r--engines/dreamweb/vgagrafx.cpp4
4 files changed, 6 insertions, 17 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index d2a9651267..6ebb617f7e 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -2657,19 +2657,6 @@ nought:
goto palloop;
}
-void DreamGenContext::paneltomap() {
- STACK_CHECK;
- di = data.word(kMapxstart);
- _add(di, data.word(kMapadx));
- bx = data.word(kMapystart);
- _add(bx, data.word(kMapady));
- ds = data.word(kMapstore);
- si = 0;
- cl = data.byte(kMapxsize);
- ch = data.byte(kMapysize);
- multiget();
-}
-
void DreamGenContext::maptopanel() {
STACK_CHECK;
di = data.word(kMapxstart);
@@ -17849,7 +17836,6 @@ void DreamGenContext::__dispatch_call(uint16 addr) {
case addr_showpcx: showpcx(); break;
case addr_loadpalfromiff: loadpalfromiff(); break;
case addr_setmode: setmode(); break;
- case addr_paneltomap: paneltomap(); break;
case addr_maptopanel: maptopanel(); break;
case addr_dumpmap: dumpmap(); break;
case addr_pixelcheckset: pixelcheckset(); break;
diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h
index f80c2ebaf2..8cf0462d74 100644
--- a/engines/dreamweb/dreamgen.h
+++ b/engines/dreamweb/dreamgen.h
@@ -568,7 +568,6 @@ public:
static const uint16 addr_pixelcheckset = 0xc1f8;
static const uint16 addr_dumpmap = 0xc1f4;
static const uint16 addr_maptopanel = 0xc1f0;
- static const uint16 addr_paneltomap = 0xc1ec;
static const uint16 addr_setmode = 0xc1dc;
static const uint16 addr_loadpalfromiff = 0xc1d8;
static const uint16 addr_showpcx = 0xc1cc;
@@ -1457,7 +1456,7 @@ public:
void runtap();
//void domix();
void priesttext();
- void paneltomap();
+ //void paneltomap();
//void obname();
void getridoftemp3();
void getridoftemp2();
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index c5a1742a9b..58bda83d84 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -198,5 +198,5 @@
void addtopeoplelist();
void addtopeoplelist(ReelRoutine *routine);
void getexpos();
-
+ void paneltomap();
diff --git a/engines/dreamweb/vgagrafx.cpp b/engines/dreamweb/vgagrafx.cpp
index 3c92640768..00fb1715ef 100644
--- a/engines/dreamweb/vgagrafx.cpp
+++ b/engines/dreamweb/vgagrafx.cpp
@@ -411,5 +411,9 @@ void DreamGenContext::zoom() {
data.byte(kDidzoom) = 1;
}
+void DreamGenContext::paneltomap() {
+ multiget(segRef(data.word(kMapstore)).ptr(0, 0), data.word(kMapxstart) + data.word(kMapadx), data.word(kMapystart) + data.word(kMapady), data.byte(kMapxsize), data.byte(kMapysize));
+}
+
} /*namespace dreamgen */