mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-18 01:52:34 +00:00
- do not allow menu slider values very close to zero. They not only can produce a glitched number display but also some weird inconsistencies when operating a slider.
This commit is contained in:
parent
4b4d7a0768
commit
7755a3525a
1 changed files with 1 additions and 0 deletions
|
@ -671,6 +671,7 @@ public:
|
||||||
{
|
{
|
||||||
return FOptionMenuItem::MenuEvent(mkey, fromcontroller);
|
return FOptionMenuItem::MenuEvent(mkey, fromcontroller);
|
||||||
}
|
}
|
||||||
|
if (fabs(value) < FLT_EPSILON) value = 0;
|
||||||
SetSliderValue(clamp(value, mMin, mMax));
|
SetSliderValue(clamp(value, mMin, mMax));
|
||||||
S_Sound (CHAN_VOICE | CHAN_UI, "menu/change", snd_menuvolume, ATTN_NONE);
|
S_Sound (CHAN_VOICE | CHAN_UI, "menu/change", snd_menuvolume, ATTN_NONE);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue