mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 15:08:19 +00:00
remove unnecessary condition
This commit is contained in:
parent
9cdaba88dc
commit
af29d8da99
|
@ -1442,9 +1442,9 @@ int CEditor::PopupSelectConfigAutoMap(CEditor *pEditor, CUIRect View, void *pCon
|
|||
int ScrollNum = (int)((ListHeight / ButtonHeight) + 1);
|
||||
if(ScrollNum > 0)
|
||||
{
|
||||
if(pEditor->Input()->KeyPress(KEY_MOUSE_WHEEL_UP) && pEditor->UI()->MouseInside(&View))
|
||||
if(pEditor->Input()->KeyPress(KEY_MOUSE_WHEEL_UP))
|
||||
s_ScrollValue = clamp(s_ScrollValue - 1.0f / ScrollNum, 0.0f, 1.0f);
|
||||
if(pEditor->Input()->KeyPress(KEY_MOUSE_WHEEL_DOWN) && pEditor->UI()->MouseInside(&View))
|
||||
if(pEditor->Input()->KeyPress(KEY_MOUSE_WHEEL_DOWN))
|
||||
s_ScrollValue = clamp(s_ScrollValue + 1.0f / ScrollNum, 0.0f, 1.0f);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue