From e0cfe795b074cbc7ba3dd4b0362c26bf2792784f Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 23 Dec 2009 06:28:11 +0000 Subject: [PATCH] fix a bogus range check. this could have caused an infinite loop --- libs/video/renderer/r_cvar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/video/renderer/r_cvar.c b/libs/video/renderer/r_cvar.c index a5d9d4342..66137c8ff 100644 --- a/libs/video/renderer/r_cvar.c +++ b/libs/video/renderer/r_cvar.c @@ -217,7 +217,7 @@ scr_ffov_f (cvar_t *var) static void viewsize_f (cvar_t *var) { - if (var->int_val < 32 || var->int_val > 120) { + if (var->int_val < 30 || var->int_val > 120) { Cvar_SetValue (var, bound (30, var->int_val, 120)); } else { vid.recalc_refdef = true;