mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 03:39:14 +00:00
Use Chop attack when walking diagonally (Fixes #1729)
This commit is contained in:
parent
e0e4cbbb41
commit
c5c822ecba
@ -1674,9 +1674,9 @@ void CharacterController::determineAttackType()
|
||||
|
||||
if(mPtr.getClass().hasInventoryStore(mPtr))
|
||||
{
|
||||
if (move[1]) // forward-backward
|
||||
if (move[1] && !move[0]) // forward-backward
|
||||
mAttackType = "thrust";
|
||||
else if (move[0]) //sideway
|
||||
else if (move[0] && !move[1]) //sideway
|
||||
mAttackType = "slash";
|
||||
else
|
||||
mAttackType = "chop";
|
||||
|
Loading…
Reference in New Issue
Block a user