1
0
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:
scrawl 2014-08-24 02:06:00 +02:00
parent e0e4cbbb41
commit c5c822ecba

View File

@ -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";