From 0ae57c3a2e3b8b8ae6bc3745f6e2fca2483e6899 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 15 Apr 2012 20:37:45 +0300 Subject: Add move to point configurable shortcuts. --- src/actionmanager.cpp | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/actionmanager.cpp') diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp index ededaea52..2c9dd775f 100644 --- a/src/actionmanager.cpp +++ b/src/actionmanager.cpp @@ -145,15 +145,18 @@ impHandler(emote) return true; } } - else if (inputManager.isActionActive(Input::KEY_MOVE_TO_POINT)) + + return false; +} + +impHandler(moveToPoint) +{ + // move to point keys + int num = event.action - Input::KEY_MOVE_TO_POINT_1; + if (socialWindow && num >= 0) { - // move to point keys - int num = event.action - Input::KEY_EMOTE_1; - if (socialWindow && num >= 0) - { - socialWindow->selectPortal(num); - return true; - } + socialWindow->selectPortal(num); + return true; } return false; -- cgit v1.2.3-70-g09d2