2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-26 11:49:25 +01:00

engine: imagelib: img_wad: dirty hack to fix black holes in console background images

This commit is contained in:
Alibek Omarov 2022-12-08 05:39:29 +03:00
parent 7469d6a248
commit ea3bfd969c

View File

@ -311,13 +311,17 @@ qboolean Image_LoadLMP( const char *name, const byte *buffer, fs_offset_t filesi
{
int numcolors;
for( i = 0; i < pixels; i++ )
// HACKHACK: console background image shouldn't be transparent
if( !Q_stristr( name, "conback" ))
{
if( fin[i] == 255 )
for( i = 0; i < pixels; i++ )
{
image.flags |= IMAGE_HAS_ALPHA;
rendermode = LUMP_MASKED;
break;
if( fin[i] == 255 )
{
image.flags |= IMAGE_HAS_ALPHA;
rendermode = LUMP_MASKED;
break;
}
}
}
pal = fin + pixels;