From b152cf14239db262fd483c43c49844f76f25636d Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sat, 4 Jul 2015 19:33:28 -0500 Subject: [PATCH] Don't fog 3D crosshair sprite --- code/renderergl1/tr_main.c | 4 ++++ code/renderergl2/tr_main.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/code/renderergl1/tr_main.c b/code/renderergl1/tr_main.c index 6a2118f1..e33eb952 100644 --- a/code/renderergl1/tr_main.c +++ b/code/renderergl1/tr_main.c @@ -1011,6 +1011,10 @@ int R_SpriteFogNum( trRefEntity_t *ent ) { return 0; } + if ( ent->e.renderfx & RF_CROSSHAIR ) { + return 0; + } + for ( i = 1 ; i < tr.world->numfogs ; i++ ) { fog = &tr.world->fogs[i]; for ( j = 0 ; j < 3 ; j++ ) { diff --git a/code/renderergl2/tr_main.c b/code/renderergl2/tr_main.c index a476586d..6d397c4a 100644 --- a/code/renderergl2/tr_main.c +++ b/code/renderergl2/tr_main.c @@ -1679,6 +1679,10 @@ int R_SpriteFogNum( trRefEntity_t *ent ) { return 0; } + if ( ent->e.renderfx & RF_CROSSHAIR ) { + return 0; + } + for ( i = 1 ; i < tr.world->numfogs ; i++ ) { fog = &tr.world->fogs[i]; for ( j = 0 ; j < 3 ; j++ ) {