shithub: qk1

Download patch

ref: 42681cb8ee1bab11448ddda478f5791b6b7699e9
parent: 94c34b727da415e203ee31d6757a04d35a60afd4
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Mon Feb 8 04:47:43 EST 2021

draw viewmodel when fov is > 90 (can still be disabled with a cvar)

--- a/qw/r_local.h
+++ b/qw/r_local.h
@@ -265,7 +265,6 @@
 extern mnode_t	*r_pefragtopnode;
 extern int		r_clipflags;
 extern int		r_dlightframecount;
-extern qboolean	r_fov_greater_than_90;
 
 void R_StoreEfrags (efrag_t **ppefrag);
 void R_TimeRefresh_f (void);
--- a/qw/r_main.c
+++ b/qw/r_main.c
@@ -34,8 +34,6 @@
 
 byte		*r_stack_start;
 
-qboolean	r_fov_greater_than_90;
-
 entity_t	r_worldentity;
 
 //
@@ -451,11 +449,6 @@
 	r_aliastransition = r_aliastransbase.value * res_scale;
 	r_resfudge = r_aliastransadj.value * res_scale;
 
-	if (scr_fov.value <= 90.0)
-		r_fov_greater_than_90 = false;
-	else
-		r_fov_greater_than_90 = true;
-
 	D_ViewChanged ();
 }
 
@@ -587,7 +580,7 @@
 	float		add;
 	dlight_t	*dl;
 	
-	if (!r_drawviewmodel.value || r_fov_greater_than_90 || !Cam_DrawViewModel())
+	if (!r_drawviewmodel.value || !Cam_DrawViewModel())
 		return;
 
 	if (cl.stats[STAT_ITEMS] & IT_INVISIBILITY)
--- a/r_local.h
+++ b/r_local.h
@@ -260,7 +260,6 @@
 extern mnode_t	*r_pefragtopnode;
 extern int		r_clipflags;
 extern int		r_dlightframecount;
-extern qboolean	r_fov_greater_than_90;
 
 void R_StoreEfrags (efrag_t **ppefrag);
 void R_TimeGraph (void);
--- a/r_main.c
+++ b/r_main.c
@@ -34,8 +34,6 @@
 
 byte		*r_stack_start;
 
-qboolean	r_fov_greater_than_90;
-
 //
 // view origin
 //
@@ -424,11 +422,6 @@
 	r_aliastransition = r_aliastransbase.value * res_scale;
 	r_resfudge = r_aliastransadj.value * res_scale;
 
-	if (scr_fov.value <= 90.0)
-		r_fov_greater_than_90 = false;
-	else
-		r_fov_greater_than_90 = true;
-
 	D_ViewChanged ();
 }
 
@@ -563,7 +556,7 @@
 	float		add;
 	dlight_t	*dl;
 	
-	if (!r_drawviewmodel.value || r_fov_greater_than_90)
+	if (!r_drawviewmodel.value)
 		return;
 
 	if (cl.items & IT_INVISIBILITY)