Defs: Prevent tilefromtexture from ever assigning index #255 (the transparent color) to the processed image.

git-svn-id: https://svn.eduke32.com/eduke32@5350 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2015-09-23 17:55:15 +00:00
parent 064461a06f
commit 18a3d07ef1

View file

@ -203,7 +203,7 @@ static void tile_from_truecolpic(int32_t tile, const palette_t *picptr, int32_t
{
palette_t const *const col = &picptr[ofs + i];
faketilebuffer[(i * siz.y) + j] =
(col->f < alphacut) ? 255 : getclosestcol(col->b, col->g, col->r);
(col->f < alphacut) ? 255 : getclosestcol_lim(col->b, col->g, col->r, 254);
}
}