From: havoc Date: Sat, 5 Jan 2008 23:15:32 +0000 (+0000) Subject: fix black fog outline bug on quake sprites X-Git-Tag: xonotic-v0.1.0preview~2582 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f907c4fc957c38598251e0dd7ed38e972d9af909;p=xonotic%2Fdarkplaces.git fix black fog outline bug on quake sprites git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7923 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/palette.c b/palette.c index f95c4891..85cd474f 100644 --- a/palette.c +++ b/palette.c @@ -85,6 +85,12 @@ void Palette_SetupSpecialPalettes(void) int transparentcolor; unsigned char *colormap; fs_offset_t filesize; + union + { + int i; + unsigned char b[4]; + } + u; colormap = FS_LoadFile("gfx/colormap.lmp", tempmempool, true, &filesize); if (colormap && filesize >= 16385) @@ -154,7 +160,9 @@ void Palette_SetupSpecialPalettes(void) for (i = 0;i < 256;i++) palette_bgra_alpha[i] = 0xFFFFFFFF; - palette_bgra_alpha[transparentcolor] = 0; + u.i = 0xFFFFFFFF; + u.b[3] = 0; + palette_bgra_alpha[transparentcolor] = u.i; for (i = 0;i < 256;i++) palette_bgra_font[i] = palette_bgra_complete[i];