[iortcw] 358/497: All: Don't fog 3D crosshair sprite

Simon McVittie smcv at debian.org
Fri Sep 8 10:37:27 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit d6d620cb2a3287c637e9b18749897d9213001002
Author: Donny <M4N4T4RMS at gmail.com>
Date:   Wed Jul 8 12:13:26 2015 -0400

    All: Don't fog 3D crosshair sprite
---
 MP/code/rend2/tr_main.c    | 4 ++++
 MP/code/renderer/tr_main.c | 4 ++++
 SP/code/rend2/tr_main.c    | 4 ++++
 SP/code/renderer/tr_main.c | 4 ++++
 4 files changed, 16 insertions(+)

diff --git a/MP/code/rend2/tr_main.c b/MP/code/rend2/tr_main.c
index d10f63b..88e6848 100644
--- a/MP/code/rend2/tr_main.c
+++ b/MP/code/rend2/tr_main.c
@@ -1936,6 +1936,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/MP/code/renderer/tr_main.c b/MP/code/renderer/tr_main.c
index f47277b..fc36e72 100644
--- a/MP/code/renderer/tr_main.c
+++ b/MP/code/renderer/tr_main.c
@@ -1295,6 +1295,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/SP/code/rend2/tr_main.c b/SP/code/rend2/tr_main.c
index 067d8be..83c9f02 100644
--- a/SP/code/rend2/tr_main.c
+++ b/SP/code/rend2/tr_main.c
@@ -1976,6 +1976,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/SP/code/renderer/tr_main.c b/SP/code/renderer/tr_main.c
index 6548c7a..34036c0 100644
--- a/SP/code/renderer/tr_main.c
+++ b/SP/code/renderer/tr_main.c
@@ -1346,6 +1346,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++ ) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list