NEVERHOOD: Fix sprite shadows (e.g. when on top in module 1000, scene 1)

This commit is contained in:
johndoe123 2014-01-09 15:33:47 +01:00
parent d19af62e6b
commit 4137128cf6

View File

@ -299,11 +299,11 @@ void unpackSpriteRle(const byte *source, int width, int height, byte *dest, int
}
source += copy;
}
dest += destPitch;
if (replaceColors)
for (int xc = 0; xc < width; xc++)
if (dest[xc] == oldColor)
dest[xc] = newColor;
dest += destPitch;
}
}
rows = READ_LE_UINT16(source);