aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/vgagrafx.cpp
diff options
context:
space:
mode:
authorBertrand Augereau2011-09-02 03:55:52 +0200
committerBertrand Augereau2011-09-02 04:33:37 +0200
commit483fae0c564973ff27878133749c51fc8111304f (patch)
tree5eb06ccff8611548d340938dd214fce8a47331fb /engines/dreamweb/vgagrafx.cpp
parent7b71e9842ee11e5f35256083f3dff63bede0a296 (diff)
downloadscummvm-rg350-483fae0c564973ff27878133749c51fc8111304f.tar.gz
scummvm-rg350-483fae0c564973ff27878133749c51fc8111304f.tar.bz2
scummvm-rg350-483fae0c564973ff27878133749c51fc8111304f.zip
DREAMWEB: 'checkifset' ported to C++
Diffstat (limited to 'engines/dreamweb/vgagrafx.cpp')
-rw-r--r--engines/dreamweb/vgagrafx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/dreamweb/vgagrafx.cpp b/engines/dreamweb/vgagrafx.cpp
index 8d437c2c73..be3f58ce63 100644
--- a/engines/dreamweb/vgagrafx.cpp
+++ b/engines/dreamweb/vgagrafx.cpp
@@ -458,11 +458,11 @@ void DreamGenContext::transferinv() {
void DreamGenContext::pixelcheckset() {
uint8 x = al;
uint8 y = ah;
- ObjPos *pos = (ObjPos *)es.ptr(bx, sizeof(ObjPos));
+ const ObjPos *pos = (const ObjPos *)es.ptr(bx, sizeof(ObjPos));
flags._z = !pixelcheckset(pos, x, y);
}
-bool DreamGenContext::pixelcheckset(ObjPos *pos, uint8 x, uint8 y) {
+bool DreamGenContext::pixelcheckset(const ObjPos *pos, uint8 x, uint8 y) {
x -= pos->xMin;
y -= pos->yMin;
SetObject *setObject = getsetad(pos->index);