aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorWalter van Niftrik2017-01-31 10:02:29 +0100
committerWalter van Niftrik2017-01-31 10:05:29 +0100
commit2a74a975a38fa7113b92d98d48ddc03c76437f3c (patch)
tree673f0151d9972da3cfd3e386aa60cf48c6c1169a /engines
parent02ebaf06b95235d3a2c8b83ec625e9c2d29178cc (diff)
downloadscummvm-rg350-2a74a975a38fa7113b92d98d48ddc03c76437f3c.tar.gz
scummvm-rg350-2a74a975a38fa7113b92d98d48ddc03c76437f3c.tar.bz2
scummvm-rg350-2a74a975a38fa7113b92d98d48ddc03c76437f3c.zip
ADL: Allow stray data bytes in pics
This triggers in hires5, region 5, room 20
Diffstat (limited to 'engines')
-rw-r--r--engines/adl/graphics.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/adl/graphics.cpp b/engines/adl/graphics.cpp
index e1b76000f6..209f8a87a3 100644
--- a/engines/adl/graphics.cpp
+++ b/engines/adl/graphics.cpp
@@ -427,7 +427,10 @@ void Graphics_v2::drawPic(Common::SeekableReadStream &pic, const Common::Point &
case 0xff:
return;
default:
- error("Invalid pic opcode %02x", opcode);
+ if (opcode >= 0xe0)
+ error("Invalid pic opcode %02x", opcode);
+ else
+ warning("Expected pic opcode, but found data byte %02x", opcode);
}
}
}