From 585c33fc9204e417395c01f3aff8655b3bc97a4f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Dec 2014 00:08:56 +0300 Subject: Remove "warp map" popup menu handler. --- src/gui/popups/popupmenu.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index f79ffba7a..25e48708c 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -987,22 +987,6 @@ void PopupMenu::handleLink(const std::string &link, inputManager.executeChatCommand(InputAction::CLOSE_CHAT_TAB, std::string(), mTab); } - else if (link == "warp map" && mMapItem) - { - if (Game::instance()) - { - adminHandler->warp(Game::instance()->getCurrentMapName(), - mMapItem->getX(), mMapItem->getY()); - } - } - else if (link == "warp map" && (mX || mY)) - { - if (Game::instance()) - { - adminHandler->warp(Game::instance()->getCurrentMapName(), - mX, mY); - } - } else if (link == "remove map" && mMapItem) { if (viewport) -- cgit v1.2.3-60-g2f50