mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix editor value selector not allowing minimal value change
For example, when the scale is 1, changing the value by exactly 1 was not possible.
This commit is contained in:
parent
3fd87df844
commit
2e8d203ed4
|
@ -605,7 +605,7 @@ int CEditor::UiDoValueSelector(void *pID, CUIRect *pRect, const char *pLabel, in
|
|||
else
|
||||
s_Value += m_MouseDeltaX;
|
||||
|
||||
if(absolute(s_Value) > Scale)
|
||||
if(absolute(s_Value) >= Scale)
|
||||
{
|
||||
int Count = (int)(s_Value / Scale);
|
||||
s_Value = fmod(s_Value, Scale);
|
||||
|
|
Loading…
Reference in a new issue