1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2025-02-04 07:37:48 -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 return false
} }
if !v.Enabled { if !v.Enabled || !m.inputState.Contains(v.InputVector) {
return return false
} }
if m.inputState.Contains(v.InputVector) { return v.Callback()
return v.Callback()
}
return false
} }