We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cd45ce commit 8341cd0Copy full SHA for 8341cd0
1 file changed
game/game/playercontrol.cpp
@@ -740,8 +740,10 @@ void PlayerControl::implMove(uint64_t dt) {
740
if(actrl[ActForward] || actrl[ActMove]) {
741
ctrl [Action::Forward] = actrl[ActMove];
742
actrl[ActMove] = false;
743
- if(ws!=WeaponState::Mage && !(g2Ctrl && (ws==WeaponState::Bow || ws==WeaponState::CBow)))
744
- actrl[ActForward] = false;
+ if(ws!=WeaponState::Mage && !(g2Ctrl && (ws==WeaponState::Bow || ws==WeaponState::CBow))) {
+ actrl[ActForward] = false;
745
+ movement.reset();
746
+ }
747
switch(ws) {
748
case WeaponState::NoWeapon:
749
break;
0 commit comments