From 718c64bc2cf309e4808f1a1c461ea23e2cdb753f Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 4 Feb 2002 05:35:05 +0000 Subject: [PATCH] don't wrap around the ends of slider bars --- cs-code/options_util.qc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cs-code/options_util.qc b/cs-code/options_util.qc index 1aea49580..07faf8d75 100644 --- a/cs-code/options_util.qc +++ b/cs-code/options_util.qc @@ -41,6 +41,7 @@ void (integer x, integer y, integer spacing, string spacechar, string label, str } Draw_String (x + spacing, y, valstr); }; + void (integer x, integer y, integer spacing, string label, string valstr) draw_val_item = { draw_item (x, y, spacing, ".", label, ":" + valstr); @@ -72,9 +73,9 @@ float (float min, float max, float step, float val, integer cntflag) min_max_cnt } if(val > max) { - val = min; - } else if(val < min) { val = max; + } else if(val < min) { + val = min; } return val; };