Fix GL2 deluxemap 0,0,0 to 127,127,127

Checked if first byte was 0 twice instead of checking second byte.
This commit is contained in:
Zack Middleton 2014-01-12 16:50:20 -06:00
parent 52e72408d9
commit 581b6316b7

View file

@ -471,7 +471,7 @@ static void R_LoadLightmaps( lump_t *l, lump_t *surfs ) {
image[j*4+2] = buf_p[j*3+2];
// make 0,0,0 into 127,127,127
if ((image[j*4+0] == 0) && (image[j*4+0] == 0) && (image[j*4+2] == 0))
if ((image[j*4+0] == 0) && (image[j*4+1] == 0) && (image[j*4+2] == 0))
{
image[j*4+0] =
image[j*4+1] =