mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-27 11:11:34 +00:00
Add clarifying comment
This commit is contained in:
parent
9d1a3f243d
commit
e734191b56
1 changed files with 2 additions and 0 deletions
|
@ -198,6 +198,8 @@ input.registerActionHandler('Use', async:callback(function(value)
|
|||
if value and combatAllowed() then startUse = true end
|
||||
end))
|
||||
local function processAttacking()
|
||||
-- for spell-casting, set controls.use to true for exactly one frame
|
||||
-- otherwise spell casting is attempted every frame while Use is true
|
||||
if Actor.stance(self) == Actor.STANCE.Spell then
|
||||
self.controls.use = startUse and 1 or 0
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue