aboutsummaryrefslogtreecommitdiff
path: root/scumm/akos.cpp
diff options
context:
space:
mode:
authorTravis Howell2004-06-27 10:54:31 +0000
committerTravis Howell2004-06-27 10:54:31 +0000
commit372296e918e7700c54d762d8924b1d692eecdd81 (patch)
treeac93cce379e52633a9e431259abb69ea09db3a9d /scumm/akos.cpp
parent4ffcdcdf4f3d16e3583920f5b0c844b67871ffeb (diff)
downloadscummvm-rg350-372296e918e7700c54d762d8924b1d692eecdd81.tar.gz
scummvm-rg350-372296e918e7700c54d762d8924b1d692eecdd81.tar.bz2
scummvm-rg350-372296e918e7700c54d762d8924b1d692eecdd81.zip
Fix actor palette in HE 7.0 games.
Use roompalette[] for all graphics decoders svn-id: r14075
Diffstat (limited to 'scumm/akos.cpp')
-rw-r--r--scumm/akos.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/scumm/akos.cpp b/scumm/akos.cpp
index 696e1512ed..e36d960417 100644
--- a/scumm/akos.cpp
+++ b/scumm/akos.cpp
@@ -221,7 +221,10 @@ void AkosRenderer::setPalette(byte *new_palette) {
palette[i] = new_palette[i] != 0xFF ? new_palette[i] : the_akpl[i];
}
- if (size == 256) {
+ if (_vm->_heversion == 70 && size) {
+ for (i = 0; i < size; i++)
+ palette[i] = _vm->he_actor_palette[palette[i]];
+ } else if (size == 256) {
byte color = new_palette[0];
if (color == 255) {
palette[0] = color;