diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-29 16:48:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-29 16:48:19 +0300 |
commit | ce2bd403c4d9297768d67ec615c2748fe4674333 (patch) | |
tree | 75b4563908f4d861e50a0be9ffdbf28c50d17163 /src/actions/move.cpp | |
parent | 0a3d5612b5091cdffbd7e60b9dc547dd9d572f2e (diff) | |
download | mv-ce2bd403c4d9297768d67ec615c2748fe4674333.tar.gz mv-ce2bd403c4d9297768d67ec615c2748fe4674333.tar.bz2 mv-ce2bd403c4d9297768d67ec615c2748fe4674333.tar.xz mv-ce2bd403c4d9297768d67ec615c2748fe4674333.zip |
Allow move pet by mod key (left shift) + move keys.
Diffstat (limited to 'src/actions/move.cpp')
-rw-r--r-- | src/actions/move.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/actions/move.cpp b/src/actions/move.cpp index 449a3927a..bc03d7c0a 100644 --- a/src/actions/move.cpp +++ b/src/actions/move.cpp @@ -64,6 +64,8 @@ impHandler(moveUp) return directUp(event); else if (inputManager.isActionActive(InputAction::PET_EMOTE)) return petDirectUp(event); + else if (inputManager.isActionActive(InputAction::STOP_ATTACK)) + return petMoveUp(event); if (popupMenu->isPopupVisible()) { popupMenu->moveUp(); @@ -78,6 +80,8 @@ impHandler(moveDown) return directDown(event); else if (inputManager.isActionActive(InputAction::PET_EMOTE)) return petDirectDown(event); + else if (inputManager.isActionActive(InputAction::STOP_ATTACK)) + return petMoveDown(event); if (popupMenu->isPopupVisible()) { popupMenu->moveDown(); @@ -99,6 +103,8 @@ impHandler(moveLeft) return directLeft(event); else if (inputManager.isActionActive(InputAction::PET_EMOTE)) return petDirectLeft(event); + else if (inputManager.isActionActive(InputAction::STOP_ATTACK)) + return petMoveLeft(event); return closeMoveNpcDialog(false); } @@ -115,6 +121,8 @@ impHandler(moveRight) return directRight(event); else if (inputManager.isActionActive(InputAction::PET_EMOTE)) return petDirectRight(event); + else if (inputManager.isActionActive(InputAction::STOP_ATTACK)) + return petMoveRight(event); return closeMoveNpcDialog(false); } |