From 223e67983de1903138a023b76bd5d1aa5507de53 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sat, 26 Dec 2015 15:42:05 +0000 Subject: [PATCH] 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 --- polymer/eduke32/build/src/voxmodel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/build/src/voxmodel.c b/polymer/eduke32/build/src/voxmodel.c index 4459a92ee..630f2bcb5 100644 --- a/polymer/eduke32/build/src/voxmodel.c +++ b/polymer/eduke32/build/src/voxmodel.c @@ -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; - pic2[i].b = cptr[palette[ii+2]*4]; - pic2[i].g = cptr[palette[ii+1]*4]; - pic2[i].r = cptr[palette[ii+0]*4]; + pic2[i].b = cptr[palette[ii+2]]; + pic2[i].g = cptr[palette[ii+1]]; + pic2[i].r = cptr[palette[ii+0]]; pic2[i].a = 255; } }