From a065831539e63dc6e25f4743b3a548aadf92304a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 27 Dec 2014 21:58:26 +0300 Subject: Move pets actions into pets.cpp. --- src/actions/actions.cpp | 34 ---------------------------------- 1 file changed, 34 deletions(-) (limited to 'src/actions/actions.cpp') diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index d43853790..6d54ec1bb 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -77,7 +77,6 @@ #include "net/ipc.h" #include "net/mercenaryhandler.h" #include "net/npchandler.h" -#include "net/pethandler.h" #include "net/playerhandler.h" #include "net/uploadcharinfo.h" #include "net/tradehandler.h" @@ -288,22 +287,6 @@ impHandler(emote) return false; } -impHandler(petEmote) -{ - if (event.action >= InputAction::PET_EMOTE_1 - && event.action <= InputAction::PET_EMOTE_48) - { - const int emotion = event.action - InputAction::PET_EMOTE_1; - if (emoteShortcut) - petHandler->emote(emoteShortcut->getEmote(emotion), 0); - if (Game::instance()) - Game::instance()->setValidSpeed(); - return true; - } - - return false; -} - impHandler(outfit) { if (inputManager.isActionActive(InputAction::WEAR_OUTFIT)) @@ -1401,23 +1384,6 @@ impHandler(uploadLog) return true; } -impHandler(catchPet) -{ - if (!localPlayer || !actorManager) - return false; - - Being *target = nullptr; - if (!event.args.empty()) - target = actorManager->findNearestByName(event.args); - if (!target) - target = localPlayer->getTarget(); - else - localPlayer->setTarget(target); - if (target) - petHandler->catchPet(target); - return true; -} - impHandler0(mercenaryFire) { mercenaryHandler->fire(); -- cgit v1.2.3-70-g09d2