mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-25 04:41:33 +00:00
Use the same controls check for startUse and processAttacking
This commit is contained in:
parent
e9b48e35c0
commit
9d1a3f243d
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ end))
|
||||||
|
|
||||||
local startUse = false
|
local startUse = false
|
||||||
input.registerActionHandler('Use', async:callback(function(value)
|
input.registerActionHandler('Use', async:callback(function(value)
|
||||||
if value and controlsAllowed() then startUse = true end
|
if value and combatAllowed() then startUse = true end
|
||||||
end))
|
end))
|
||||||
local function processAttacking()
|
local function processAttacking()
|
||||||
if Actor.stance(self) == Actor.STANCE.Spell then
|
if Actor.stance(self) == Actor.STANCE.Spell then
|
||||||
|
|
Loading…
Reference in a new issue