fix a bogus range check. this could have caused an infinite loop

This commit is contained in:
Bill Currie 2009-12-23 06:28:11 +00:00 committed by Jeff Teunissen
parent 97f54e22df
commit e0cfe795b0

View file

@ -217,7 +217,7 @@ scr_ffov_f (cvar_t *var)
static void static void
viewsize_f (cvar_t *var) 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)); Cvar_SetValue (var, bound (30, var->int_val, 120));
} else { } else {
vid.recalc_refdef = true; vid.recalc_refdef = true;