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 2023-09-24 17:28:37 -04:00 committed by Dudemanguy
parent 3665b8d1d8
commit 9cd2a9fc48
1 changed files with 1 additions and 1 deletions

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