mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Merge branch 'automove' into 'master'
Some checks failed
Build and test / Ubuntu (push) Has been cancelled
Build and test / MacOS (push) Has been cancelled
Build and test / Read .env file and expose it as output (push) Has been cancelled
Build and test / Windows (2022) (push) Has been cancelled
Build and test / Windows (2019) (push) Has been cancelled
Some checks failed
Build and test / Ubuntu (push) Has been cancelled
Build and test / MacOS (push) Has been cancelled
Build and test / Read .env file and expose it as output (push) Has been cancelled
Build and test / Windows (2022) (push) Has been cancelled
Build and test / Windows (2019) (push) Has been cancelled
Don't disable automove when the player can't move (#8358) Closes #8358 See merge request OpenMW/openmw!4547
This commit is contained in:
commit
07cc2a72bb
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ local function processMovement()
|
||||||
local sideMovement = input.getRangeActionValue('MoveRight') - input.getRangeActionValue('MoveLeft')
|
local sideMovement = input.getRangeActionValue('MoveRight') - input.getRangeActionValue('MoveLeft')
|
||||||
local run = input.getBooleanActionValue('Run') ~= settings:get('alwaysRun')
|
local run = input.getBooleanActionValue('Run') ~= settings:get('alwaysRun')
|
||||||
|
|
||||||
if movement ~= 0 or not Actor.canMove(self) then
|
if movement ~= 0 then
|
||||||
autoMove = false
|
autoMove = false
|
||||||
elseif autoMove then
|
elseif autoMove then
|
||||||
movement = 1
|
movement = 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue