1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix dithering error in sprite importer

This commit is contained in:
Thomas den Hollander
2018-03-18 12:58:50 +01:00
committed by Aaron van Geffen
parent 924aed8136
commit af8adfeb40

View File

@@ -418,7 +418,7 @@ static bool sprite_file_import(const char *path, sint16 x_offset, sint16 y_offse
if (x + 1 < width)
{
if (!is_transparent_pixel(rgbaSrc + 4 * (width - 1)) && is_changable_pixel(get_palette_index(rgbaSrc + 4 * (width + 1))))
if (!is_transparent_pixel(rgbaSrc + 4 * (width + 1)) && is_changable_pixel(get_palette_index(rgbaSrc + 4 * (width + 1))))
{
// Bottom right
rgbaSrc[4 * (width + 1)] += dr * 1 / 16;