]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - wad.c
fixed transparent color in HL textures (was red, should be blue... oops)
[xonotic/darkplaces.git] / wad.c
diff --git a/wad.c b/wad.c
index 058e07b0db517465affa1b7d6c3a1bca320710c6..9fc1237dcdaf910ed38c4e379c2c05e9fa1b165a 100644 (file)
--- a/wad.c
+++ b/wad.c
@@ -354,7 +354,7 @@ byte *W_GetTexture(char *name, int matchwidth, int matchheight)
                                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
                                        {