osc.lua: fix calculation for slider's min-max average

Average of two numbers is given by the sum of the two numbers
divided by two. It's gone unnoticed because `s_min` is
basically always zero.
This commit is contained in:
Mike Will authored and Dudemanguy committed 2023-09-25 16:07:34 +00:00
1 parent 3665b8d1d8
commit 9cd2a9fc48
1 file changed
+1 -1
+1 -1
View File
@@ -818,7 +818,7 @@ function render_elements(master_ass)
elseif (sliderpos > (s_max - 3)) then
an = an + 1
end
elseif (sliderpos > (s_max-s_min)/2) then
elseif (sliderpos > (s_max+s_min)/2) then
an = an + 1
tx = tx - 5
else