diff --git a/engines/scumm/akos.cpp b/engines/scumm/akos.cpp
index 403fe72..d5d6b61 100644
a
|
b
|
byte AkosRenderer::codec5(int xmoveCur, int ymoveCur) {
|
1065 | 1065 | bdd.shadowMode = _shadow_mode; |
1066 | 1066 | bdd.shadowPalette = _vm->_shadowPalette; |
1067 | 1067 | |
1068 | | bdd.actorPalette = 0; |
1069 | | if (_useBompPalette) { |
1070 | | for (uint i = 0; i < 256; i++) |
1071 | | bdd.actorPalette[i] = _palette[i]; |
1072 | | } |
| 1068 | bdd.actorPalette = _useBompPalette ? _palette : 0; |
1073 | 1069 | |
1074 | 1070 | bdd.mirror = !_mirror; |
1075 | 1071 | |
diff --git a/engines/scumm/bomp.cpp b/engines/scumm/bomp.cpp
index ddb6264..18db89b 100644
a
|
b
|
static void bompScaleFuncX(byte *line_buffer, byte *scaling_x_ptr, byte skip, in
|
38 | 38 | static void bompApplyShadow0(const byte *shadowPalette, const byte *line_buffer, byte *dst, int32 size, byte transparency, bool HE7Check); |
39 | 39 | static void bompApplyShadow1(const byte *shadowPalette, const byte *line_buffer, byte *dst, int32 size, byte transparency); |
40 | 40 | static void bompApplyShadow3(const byte *shadowPalette, const byte *line_buffer, byte *dst, int32 size, byte transparency); |
41 | | static void bompApplyActorPalette(byte *actorPalette, byte *line_buffer, int32 size); |
| 41 | static void bompApplyActorPalette(uint16 *actorPalette, byte *line_buffer, int32 size); |
42 | 42 | |
43 | 43 | |
44 | 44 | |
… |
… |
void bompApplyShadow3(const byte *shadowPalette, const byte *line_buffer, byte *
|
172 | 172 | } |
173 | 173 | } |
174 | 174 | |
175 | | void bompApplyActorPalette(byte *actorPalette, byte *line_buffer, int32 size) { |
| 175 | void bompApplyActorPalette(uint16 *actorPalette, byte *line_buffer, int32 size) { |
176 | 176 | actorPalette[255] = 255; |
177 | 177 | while (size-- > 0) { |
178 | 178 | *line_buffer = actorPalette[*line_buffer]; |
diff --git a/engines/scumm/bomp.h b/engines/scumm/bomp.h
index 0d76c37..8f64b54 100644
a
|
b
|
struct BompDrawData {
|
54 | 54 | uint16 shadowMode; |
55 | 55 | byte *shadowPalette; |
56 | 56 | |
57 | | byte *actorPalette; |
| 57 | uint16 *actorPalette; |
58 | 58 | |
59 | 59 | bool mirror; |
60 | 60 | }; |