diff options
author | Sven Hesse | 2008-12-05 18:47:50 +0000 |
---|---|---|
committer | Sven Hesse | 2008-12-05 18:47:50 +0000 |
commit | bc5f25b5a0035668521f8d04728658b1ab2106c0 (patch) | |
tree | 3b9c1194defee5b02c2154046aa11b7a97f80e01 /engines/gob/coktelvideo.cpp | |
parent | bfd32c9516a0d62085b04f789b72a8e616051a99 (diff) | |
download | scummvm-rg350-bc5f25b5a0035668521f8d04728658b1ab2106c0.tar.gz scummvm-rg350-bc5f25b5a0035668521f8d04728658b1ab2106c0.tar.bz2 scummvm-rg350-bc5f25b5a0035668521f8d04728658b1ab2106c0.zip |
Evaluating kFeaturesPalette flag for VMDs. Now you can actually see something in Urban Runner (though it's far from pretty)
svn-id: r35249
Diffstat (limited to 'engines/gob/coktelvideo.cpp')
-rw-r--r-- | engines/gob/coktelvideo.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/gob/coktelvideo.cpp b/engines/gob/coktelvideo.cpp index be274ef6d3..48dc7f1adc 100644 --- a/engines/gob/coktelvideo.cpp +++ b/engines/gob/coktelvideo.cpp @@ -66,6 +66,8 @@ bool Imd::load(Common::SeekableReadStream &stream) { // IMDs always have video _features |= kFeaturesVideo; + // IMDs always have palettes + _features |= kFeaturesPalette; // Palette _stream->read((byte *) _palette, 768); @@ -880,6 +882,9 @@ bool Vmd::load(Common::SeekableReadStream &stream) { uint16 handle = _stream->readUint16LE(); _version = _stream->readUint16LE(); + if (!(_version & 2)) + _features |= kFeaturesPalette; + // 0x4 (4) // Version checking |