aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/zbuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/bladerunner/zbuffer.cpp')
-rw-r--r--engines/bladerunner/zbuffer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/bladerunner/zbuffer.cpp b/engines/bladerunner/zbuffer.cpp
index 76391f009f..3f2ed9abcc 100644
--- a/engines/bladerunner/zbuffer.cpp
+++ b/engines/bladerunner/zbuffer.cpp
@@ -93,9 +93,9 @@ static int decodePartialZBuffer(const uint8 *src, uint16 *curZBUF, uint32 srcLen
uint32 dstRemain = dstSize;
uint16 *curzp = curZBUF;
- uint16 *inp = (uint16*)src;
+ const uint16 *inp = (const uint16*)src;
- while (dstRemain && (inp - (uint16*)src) < (std::ptrdiff_t)srcLen) {
+ while (dstRemain && (inp - (const uint16*)src) < (std::ptrdiff_t)srcLen) {
uint32 count = FROM_LE_16(*inp++);
if (count & 0x8000) {
@@ -129,12 +129,12 @@ bool ZBuffer::decodeData(const uint8 *data, int size) {
return false;
}
- uint32 width, height, complete, unk0;
+ uint32 width, height, complete;// , unk0;
width = READ_LE_UINT32(data + 0);
height = READ_LE_UINT32(data + 4);
complete = READ_LE_UINT32(data + 8);
- unk0 = READ_LE_UINT32(data + 12);
+ /*unk0 =*/ READ_LE_UINT32(data + 12);
if (width != (uint32)_width || height != (uint32)_height) {
warning("zbuffer size mismatch (%d, %d) != (%d, %d)", _width, _height, width, height);