Skip to content

Commit 8341cd0

Browse files
committed
clear move intent, after melee attack
1 parent 4cd45ce commit 8341cd0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

game/game/playercontrol.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,10 @@ void PlayerControl::implMove(uint64_t dt) {
740740
if(actrl[ActForward] || actrl[ActMove]) {
741741
ctrl [Action::Forward] = actrl[ActMove];
742742
actrl[ActMove] = false;
743-
if(ws!=WeaponState::Mage && !(g2Ctrl && (ws==WeaponState::Bow || ws==WeaponState::CBow)))
744-
actrl[ActForward] = false;
743+
if(ws!=WeaponState::Mage && !(g2Ctrl && (ws==WeaponState::Bow || ws==WeaponState::CBow))) {
744+
actrl[ActForward] = false;
745+
movement.reset();
746+
}
745747
switch(ws) {
746748
case WeaponState::NoWeapon:
747749
break;

0 commit comments

Comments
 (0)