Don't fog 3D crosshair sprite

This commit is contained in:
Zack Middleton 2015-07-04 19:33:28 -05:00
parent 5e575ae82e
commit b152cf1423
2 changed files with 8 additions and 0 deletions

View file

@ -1011,6 +1011,10 @@ int R_SpriteFogNum( trRefEntity_t *ent ) {
return 0; return 0;
} }
if ( ent->e.renderfx & RF_CROSSHAIR ) {
return 0;
}
for ( i = 1 ; i < tr.world->numfogs ; i++ ) { for ( i = 1 ; i < tr.world->numfogs ; i++ ) {
fog = &tr.world->fogs[i]; fog = &tr.world->fogs[i];
for ( j = 0 ; j < 3 ; j++ ) { for ( j = 0 ; j < 3 ; j++ ) {

View file

@ -1679,6 +1679,10 @@ int R_SpriteFogNum( trRefEntity_t *ent ) {
return 0; return 0;
} }
if ( ent->e.renderfx & RF_CROSSHAIR ) {
return 0;
}
for ( i = 1 ; i < tr.world->numfogs ; i++ ) { for ( i = 1 ; i < tr.world->numfogs ; i++ ) {
fog = &tr.world->fogs[i]; fog = &tr.world->fogs[i];
for ( j = 0 ; j < 3 ; j++ ) { for ( j = 0 ; j < 3 ; j++ ) {