Polymost: Fix voxels so palette colors are treated as 8-bit, not 6-bit. Overlooked in r5349.

git-svn-id: https://svn.eduke32.com/eduke32@5493 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2015-12-26 15:42:05 +00:00
parent aac1900472
commit 223e67983d

View file

@ -63,9 +63,9 @@ uint32_t gloadtex(int32_t *picbuf, int32_t xsiz, int32_t ysiz, int32_t is8bit, i
{ {
const int32_t ii = palookup[dapal][pic[i].a] * 3; const int32_t ii = palookup[dapal][pic[i].a] * 3;
pic2[i].b = cptr[palette[ii+2]*4]; pic2[i].b = cptr[palette[ii+2]];
pic2[i].g = cptr[palette[ii+1]*4]; pic2[i].g = cptr[palette[ii+1]];
pic2[i].r = cptr[palette[ii+0]*4]; pic2[i].r = cptr[palette[ii+0]];
pic2[i].a = 255; pic2[i].a = 255;
} }
} }