mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-29 06:07:57 +03:00
Fixed fence mask being incorrectly specified as transparent rather than opaque
This commit is contained in:
parent
1577927d99
commit
5cadab46ab
1 changed files with 3 additions and 3 deletions
|
@ -468,11 +468,11 @@ qboolean CM_GenerateFenceMask( const char *szName, cfencemask_t **pMask )
|
||||||
|
|
||||||
for( i = 0; i < iImageSize; i++, pCurrImage += sizeof( unsigned int ) )
|
for( i = 0; i < iImageSize; i++, pCurrImage += sizeof( unsigned int ) )
|
||||||
{
|
{
|
||||||
if( *pCurrImage >= 0 )
|
if( *pCurrImage & 0x80 )
|
||||||
{
|
{
|
||||||
bHasTrans = qtrue;
|
|
||||||
} else {
|
|
||||||
bHasOpaque = qtrue;
|
bHasOpaque = qtrue;
|
||||||
|
} else {
|
||||||
|
bHasTrans = qtrue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( bHasOpaque && bHasTrans ) {
|
if( bHasOpaque && bHasTrans ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue