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

utils: mdldec: fix of masked_solid texture flag

This commit is contained in:
SNMetamorph 2021-07-29 12:52:49 +04:00 committed by Alibek Omarov #SupportRMS
parent 7b8ec0ad4b
commit 8d5426cdcd

View File

@ -224,10 +224,12 @@ static void WriteTextureRenderMode( FILE *fp )
fprintf( fp, "$texrendermode \"%s\" \"additive\" \n", texture->name );
if( texture->flags & STUDIO_NF_MASKED )
fprintf( fp, "$texrendermode \"%s\" \"masked\" \n", texture->name );
if( texture->flags & ( STUDIO_NF_MASKED | STUDIO_NF_ALPHASOLID ) )
{
if( texture->flags & STUDIO_NF_ALPHASOLID )
fprintf( fp, "$texrendermode \"%s\" \"masked_solid\" \n", texture->name ); // xash3d extension
else
fprintf( fp, "$texrendermode \"%s\" \"masked\" \n", texture->name );
}
if( texture->flags & STUDIO_NF_TWOSIDE )
fprintf( fp, "$texrendermode \"%s\" \"twoside\" \n", texture->name );