mirror of https://github.com/OpenTTD/OpenTTD
pull/14244/head
parent
a277cb2b4c
commit
228f9ca941
|
@ -377,8 +377,11 @@ void Blitter_40bppAnim::DrawColourMappingRect(void *dst, int width, int height,
|
|||
const uint8_t *remap = GetNonSprite(pal, SpriteType::Recolour) + 1;
|
||||
do {
|
||||
for (int i = 0; i != width; i++) {
|
||||
if (*anim == 0) *udst = MakeGrey(*udst);
|
||||
*anim = remap[*anim];
|
||||
if (*anim == 0) {
|
||||
*udst = MakeGrey(*udst);
|
||||
} else {
|
||||
*anim = remap[*anim];
|
||||
}
|
||||
udst++;
|
||||
anim++;
|
||||
}
|
||||
|
@ -389,7 +392,7 @@ void Blitter_40bppAnim::DrawColourMappingRect(void *dst, int width, int height,
|
|||
const uint8_t *remap = GetNonSprite(pal, SpriteType::Recolour) + 1;
|
||||
do {
|
||||
for (int i = 0; i != width; i++) {
|
||||
*anim = remap[*anim];
|
||||
if (*anim != 0) *anim = remap[*anim];
|
||||
anim++;
|
||||
}
|
||||
anim = anim - width + _screen.pitch;
|
||||
|
|
Loading…
Reference in New Issue