don't wrap around the ends of slider bars

This commit is contained in:
Bill Currie 2002-02-04 05:35:05 +00:00
parent ba902690ee
commit 718c64bc2c
1 changed files with 3 additions and 2 deletions

View File

@ -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;
};