diff options
author | Walter van Niftrik | 2017-01-31 10:02:29 +0100 |
---|---|---|
committer | Walter van Niftrik | 2017-01-31 10:05:29 +0100 |
commit | 2a74a975a38fa7113b92d98d48ddc03c76437f3c (patch) | |
tree | 673f0151d9972da3cfd3e386aa60cf48c6c1169a /engines | |
parent | 02ebaf06b95235d3a2c8b83ec625e9c2d29178cc (diff) | |
download | scummvm-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.cpp | 5 |
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); } } } |