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:
parent
7b8ec0ad4b
commit
8d5426cdcd
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user