aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/video
diff options
context:
space:
mode:
authormd52011-02-24 21:23:16 +0200
committermd52011-02-24 21:27:30 +0200
commitf890c1b6ed3bf465fd7e372c2b2d29bd93cd048c (patch)
tree6a1ac159335bf7ca7c2075afa5c6cf5667c86414 /engines/sci/video
parent273a324a7111608329eea4ee2e8c0c3d1636aa7c (diff)
downloadscummvm-rg350-f890c1b6ed3bf465fd7e372c2b2d29bd93cd048c.tar.gz
scummvm-rg350-f890c1b6ed3bf465fd7e372c2b2d29bd93cd048c.tar.bz2
scummvm-rg350-f890c1b6ed3bf465fd7e372c2b2d29bd93cd048c.zip
SCI: Fixed video playing in the PQ:SWAT demo
Diffstat (limited to 'engines/sci/video')
-rw-r--r--engines/sci/video/robot_decoder.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sci/video/robot_decoder.cpp b/engines/sci/video/robot_decoder.cpp
index bf52de67d5..ecdce3bd6b 100644
--- a/engines/sci/video/robot_decoder.cpp
+++ b/engines/sci/video/robot_decoder.cpp
@@ -251,6 +251,11 @@ const Graphics::Surface *RobotDecoder::decodeNextFrame() {
_fileStream->skip(4); // unknown, almost always 0
uint16 frameX = _fileStream->readUint16();
uint16 frameY = _fileStream->readUint16();
+ // TODO: In v4 robot files, frameX and frameY have a different meaning.
+ // Set them both to 0 for v4 for now, so that robots in PQ:SWAT show up
+ // correctly.
+ if (_header.version == 4)
+ frameX = frameY = 0;
uint16 compressedSize = _fileStream->readUint16();
uint16 frameFragments = _fileStream->readUint16();
_fileStream->skip(4); // unknown