mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-28 05:11:34 +00:00
Fix uninitialized alpha when reading colormaps
This commit is contained in:
parent
f7e74e8884
commit
c382794109
1 changed files with 2 additions and 0 deletions
|
@ -1494,6 +1494,7 @@ static void P_LoadRawSideDefs2(void *data)
|
||||||
color.s.red = (HEX2INT(col[1]) << 4) + HEX2INT(col[2]);
|
color.s.red = (HEX2INT(col[1]) << 4) + HEX2INT(col[2]);
|
||||||
color.s.green = (HEX2INT(col[3]) << 4) + HEX2INT(col[4]);
|
color.s.green = (HEX2INT(col[3]) << 4) + HEX2INT(col[4]);
|
||||||
color.s.blue = (HEX2INT(col[5]) << 4) + HEX2INT(col[6]);
|
color.s.blue = (HEX2INT(col[5]) << 4) + HEX2INT(col[6]);
|
||||||
|
color.s.alpha = 0;
|
||||||
|
|
||||||
#ifdef GLENCORE
|
#ifdef GLENCORE
|
||||||
if (encoremap)
|
if (encoremap)
|
||||||
|
@ -1535,6 +1536,7 @@ static void P_LoadRawSideDefs2(void *data)
|
||||||
color.s.red = (HEX2INT(col[1]) << 4) + HEX2INT(col[2]);
|
color.s.red = (HEX2INT(col[1]) << 4) + HEX2INT(col[2]);
|
||||||
color.s.green = (HEX2INT(col[3]) << 4) + HEX2INT(col[4]);
|
color.s.green = (HEX2INT(col[3]) << 4) + HEX2INT(col[4]);
|
||||||
color.s.blue = (HEX2INT(col[5]) << 4) + HEX2INT(col[6]);
|
color.s.blue = (HEX2INT(col[5]) << 4) + HEX2INT(col[6]);
|
||||||
|
color.s.alpha = 0;
|
||||||
|
|
||||||
#ifdef GLENCORE
|
#ifdef GLENCORE
|
||||||
if (encoremap)
|
if (encoremap)
|
||||||
|
|
Loading…
Reference in a new issue