1
0
Fork 0
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:
uramer 2024-01-02 14:40:03 +01:00
parent 9d1a3f243d
commit e734191b56

View file

@ -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