1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-30 07:21:12 +00:00

Use the same controls check for startUse and processAttacking

This commit is contained in:
uramer 2024-01-02 14:31:13 +01:00
parent e9b48e35c0
commit 9d1a3f243d

View File

@ -195,7 +195,7 @@ end))
local startUse = false
input.registerActionHandler('Use', async:callback(function(value)
if value and controlsAllowed() then startUse = true end
if value and combatAllowed() then startUse = true end
end))
local function processAttacking()
if Actor.stance(self) == Actor.STANCE.Spell then