ref: do not remove permanent decals

This commit is contained in:
Alibek Omarov
2026-01-22 23:40:39 +05:00
parent b83d763a50
commit 7a8837bf2a
2 changed files with 2 additions and 2 deletions

View File

@@ -1217,7 +1217,7 @@ void R_DecalRemoveAll( int textureIndex )
pdecal = &gDecalPool[i];
// don't remove permanent decals
if( !textureIndex && FBitSet( pdecal->flags, FDECAL_PERMANENT ))
if( FBitSet( pdecal->flags, FDECAL_PERMANENT ))
continue;
if( !textureIndex || ( pdecal->texture == textureIndex ))

View File

@@ -1028,7 +1028,7 @@ void GAME_EXPORT R_DecalRemoveAll( int textureIndex )
pdecal = &gDecalPool[i];
// don't remove permanent decals
if( !textureIndex && FBitSet( pdecal->flags, FDECAL_PERMANENT ))
if( FBitSet( pdecal->flags, FDECAL_PERMANENT ))
continue;
if( !textureIndex || ( pdecal->texture == textureIndex ))