utils: mdldec: fix of masked_solid texture flag

pull/550/head
SNMetamorph 1 year ago committed by Alibek Omarov #SupportRMS
parent 7b8ec0ad4b
commit 8d5426cdcd
  1. 10
      utils/mdldec/qc.c

@ -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 ) )
fprintf( fp, "$texrendermode \"%s\" \"masked_solid\" \n", texture->name ); // xash3d extension
{
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…
Cancel
Save