summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-12 22:40:17 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-12 22:40:17 +0300
commit62e4f21e5cd2f38773d8d0a4d7db29c4eebbeb51 (patch)
tree34051d5ed3976e5208c5a808cb7c4afb32284b55 /src
parent2c1dc81db735d0da2cf25afd34b93c2f228ebb2d (diff)
downloadmanaverse-62e4f21e5cd2f38773d8d0a4d7db29c4eebbeb51.tar.gz
manaverse-62e4f21e5cd2f38773d8d0a4d7db29c4eebbeb51.tar.bz2
manaverse-62e4f21e5cd2f38773d8d0a4d7db29c4eebbeb51.tar.xz
manaverse-62e4f21e5cd2f38773d8d0a4d7db29c4eebbeb51.zip
Remove "movecamera" popup menu handler.
Diffstat (limited to 'src')
-rw-r--r--src/gui/popups/popupmenu.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 6ae15248e..cc9d74d34 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -645,7 +645,7 @@ void PopupMenu::showMapPopup(const int x, const int y,
mBrowserBox->addRow("/navigate 'X' 'Y'", _("Move"));
// TRANSLATORS: popup menu item
// TRANSLATORS: move camera to map item
- mBrowserBox->addRow("movecamera", _("Move camera"));
+ mBrowserBox->addRow("/movecamera 'X' 'Y'", _("Move camera"));
mBrowserBox->addRow("##3---");
// TRANSLATORS: popup menu item
// TRANSLATORS: close menu
@@ -982,12 +982,7 @@ void PopupMenu::handleLink(const std::string &link,
if (actorManager)
being = actorManager->findBeing(mBeingId);
- if (link == "movecamera" && (mX || mY))
- {
- if (viewport)
- viewport->moveCameraToPosition(mX * mapTileSize, mY * mapTileSize);
- }
- else if (link == "split" && mItem)
+ if (link == "split" && mItem)
{
ItemAmountWindow::showWindow(ItemAmountWindow::ItemSplit,
inventoryWindow, mItem);