1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 12:01:51 +00:00

Add missing 'local' in playercontrols.lua

This commit is contained in:
Petr Mikheev 2023-08-09 10:18:26 +02:00
parent 84e71f4977
commit b34930d3f2

View File

@ -106,7 +106,7 @@ local function processAttacking()
end
local function onFrame(dt)
controlsAllowed = input.getControlSwitch(input.CONTROL_SWITCH.Controls) and not core.isWorldPaused()
local controlsAllowed = input.getControlSwitch(input.CONTROL_SWITCH.Controls) and not core.isWorldPaused()
if not movementControlsOverridden then
if controlsAllowed then
processMovement()