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 committed 2014-01-12 17:02:21 -06:00
1 parent 52e72408d9
commit 581b6316b7
1 file changed
+1 -1
+1 -1
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] =