mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 21:42:13 +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(mPtr.getClass().hasInventoryStore(mPtr))
|
||||||
{
|
{
|
||||||
if (move[1]) // forward-backward
|
if (move[1] && !move[0]) // forward-backward
|
||||||
mAttackType = "thrust";
|
mAttackType = "thrust";
|
||||||
else if (move[0]) //sideway
|
else if (move[0] && !move[1]) //sideway
|
||||||
mAttackType = "slash";
|
mAttackType = "slash";
|
||||||
else
|
else
|
||||||
mAttackType = "chop";
|
mAttackType = "chop";
|
||||||
|
Loading…
Reference in New Issue
Block a user