1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-05-29 16:41:34 +00:00

Merge branch 'automove' into 'master'

Don't disable automove when the player can't move (#8358)

Closes #8358

See merge request OpenMW/openmw!4547
This commit is contained in:
Evil Eye 2025-02-22 11:18:39 +00:00
commit 07cc2a72bb

View file

@ -89,7 +89,7 @@ local function processMovement()
local sideMovement = input.getRangeActionValue('MoveRight') - input.getRangeActionValue('MoveLeft')
local run = input.getBooleanActionValue('Run') ~= settings:get('alwaysRun')
if movement ~= 0 or not Actor.canMove(self) then
if movement ~= 0 then
autoMove = false
elseif autoMove then
movement = 1