]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_brush.c
fixed transparent color in HL textures (was red, should be blue... oops)
[xonotic/darkplaces.git] / model_brush.c
index e0bd20f40d7622e2995c646d50772273f9df67c0..3f09262d54aaadff80939fc380e20bd6808f09a5 100644 (file)
@@ -193,8 +193,11 @@ void Mod_LoadTextures (lump_t *l)
                                                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;
                                        }
                                }