shithub: qk1

Download patch

ref: 126bee7e131e05f58130d59a21a33b065fc8fe45
parent: 02da7ebf0aaf2a83010b86f61e03474a4b370595
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Sat Oct 14 22:01:59 EDT 2023

adjust particle max size based on FOV

--- a/d_modech.c
+++ b/d_modech.c
@@ -46,7 +46,7 @@
 	if (d_pix_min < 1)
 		d_pix_min = 1;
 
-	d_pix_max = (int)((float)r_refdef.vrect.width / (320.0 / 4.0) + 0.5);
+	d_pix_max = (int)((float)r_refdef.vrect.width / (320.0 / 4.0) + 0.5) * 90.0/r_refdef.fov_x;
 	d_pix_shift = 8 - (int)((float)r_refdef.vrect.width / 320.0 + 0.5);
 	if (d_pix_max < 1)
 		d_pix_max = 1;