diff options
-rw-r--r-- | engines/mads/scene_data.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/mads/scene_data.cpp b/engines/mads/scene_data.cpp index fe768934c3..de053a62e9 100644 --- a/engines/mads/scene_data.cpp +++ b/engines/mads/scene_data.cpp @@ -535,6 +535,11 @@ void SceneInfo::load(int sceneId, int v1, const Common::String &resName, stream = artResource.getItemStream(1); stream->read(bgSurface.getPixels(), bgSurface.w * bgSurface.h); + if (!(flags & 1)) { + // Translate the background to use the correct palette indexes + bgSurface.translate(artHeader._palette); + } + // Close the ART file delete stream; artFile.close(); |