diff options
author | Bertrand Augereau | 2011-09-02 03:55:52 +0200 |
---|---|---|
committer | Bertrand Augereau | 2011-09-02 04:33:37 +0200 |
commit | 483fae0c564973ff27878133749c51fc8111304f (patch) | |
tree | 5eb06ccff8611548d340938dd214fce8a47331fb /engines/dreamweb/vgagrafx.cpp | |
parent | 7b71e9842ee11e5f35256083f3dff63bede0a296 (diff) | |
download | scummvm-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.cpp | 4 |
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); |