From 1f8a1d613f565e782aac9cb854fecc948df8c01b Mon Sep 17 00:00:00 2001 From: Ragnvald Maartmann-Moe IV Date: Mon, 8 Jul 2002 00:05:33 +0000 Subject: [PATCH] Fix r_particles_nearclip being forced to max. --- libs/video/renderer/r_cvar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/video/renderer/r_cvar.c b/libs/video/renderer/r_cvar.c index 97165f727..f2d81e29d 100644 --- a/libs/video/renderer/r_cvar.c +++ b/libs/video/renderer/r_cvar.c @@ -172,7 +172,7 @@ r_farclip_f (cvar_t *var) Cvar_SetValue (r_farclip, bound (8.0, var->value, Q_MAXFLOAT)); if (r_particles_nearclip && r_nearclip) Cvar_SetValue (r_particles_nearclip, - bound (r_nearclip->value, var->value, + bound (r_nearclip->value, r_particles_nearclip->value, r_farclip->value)); } @@ -182,7 +182,7 @@ r_nearclip_f (cvar_t *var) Cvar_SetValue (r_nearclip, bound (0.01, var->value, 4.0)); if (r_particles_nearclip && r_farclip) Cvar_SetValue (r_particles_nearclip, - bound (r_nearclip->value, var->value, + bound (r_nearclip->value, r_particles_nearclip->value, r_farclip->value)); }