git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@175
d7cf8633-e32d-0410-b094-
e92efae38249
out[1] = pal[p+1];
out[2] = pal[p+2];
out[3] = 255;
- if (out[0] == 255 && out[1] == 0 && out[2] == 0) // HL transparent color (pure blue)
+ if (out[0] == 0 && out[1] == 0 && out[2] == 255) // HL transparent color (pure blue)
+ {
out[0] = out[1] = out[2] = out[3] = 0;
+ transparent = TRUE;
+ }
out += 4;
}
}
for (i = 0;i < image_width*image_height;i++)
{
c = *indata++;
- if (pal[c][0] == 255 && pal[c][1] == 0 && pal[c][2] == 0) // HL transparent color (pure blue)
+ if (pal[c][0] == 0 && pal[c][1] == 0 && pal[c][2] == 255) // HL transparent color (pure blue)
outdata[0] = outdata[1] = outdata[2] = outdata[3] = 0;
else
{