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:
parent
f2a9fbcebc
commit
a23ab9991f
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user