aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/videoplayer.cpp
diff options
context:
space:
mode:
authorSven Hesse2008-12-05 18:47:50 +0000
committerSven Hesse2008-12-05 18:47:50 +0000
commitbc5f25b5a0035668521f8d04728658b1ab2106c0 (patch)
tree3b9c1194defee5b02c2154046aa11b7a97f80e01 /engines/gob/videoplayer.cpp
parentbfd32c9516a0d62085b04f789b72a8e616051a99 (diff)
downloadscummvm-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/videoplayer.cpp')
-rw-r--r--engines/gob/videoplayer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/gob/videoplayer.cpp b/engines/gob/videoplayer.cpp
index 4c821d1fd5..50b8a64bfd 100644
--- a/engines/gob/videoplayer.cpp
+++ b/engines/gob/videoplayer.cpp
@@ -633,6 +633,9 @@ bool VideoPlayer::doPlay(int16 frame, int16 breakKey,
}
void VideoPlayer::copyPalette(CoktelVideo &video, int16 palStart, int16 palEnd) {
+ if (!(video.getFeatures() & CoktelVideo::kFeaturesPalette))
+ return;
+
if (palStart < 0)
palStart = 0;
if (palEnd < 0)