1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2025-02-03 23:26:41 -05:00

minor edit of if statement

This commit is contained in:
gravestench 2020-11-28 16:21:08 -08:00
parent f2a9fbcebc
commit a23ab9991f

View File

@ -142,13 +142,9 @@ func (m *InputSystem) applyInputState(id akara.EID) (preventPropagation bool) {
return false
}
if !v.Enabled {
return
if !v.Enabled || !m.inputState.Contains(v.InputVector) {
return false
}
if m.inputState.Contains(v.InputVector) {
return v.Callback()
}
return false
return v.Callback()
}