summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-06-30 20:35:45 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-06-30 20:35:45 +0000
commit1202aac397dcbc94537ad4bff9d03a79896ea2b6 (patch)
tree0f8601bd4e403624000f9608a18cdccac6159a86 /src/gui/popupmenu.cpp
parentfdc954022d6ce22a7f566d06623f91f03289c37a (diff)
downloadmana-1202aac397dcbc94537ad4bff9d03a79896ea2b6.tar.gz
mana-1202aac397dcbc94537ad4bff9d03a79896ea2b6.tar.bz2
mana-1202aac397dcbc94537ad4bff9d03a79896ea2b6.tar.xz
mana-1202aac397dcbc94537ad4bff9d03a79896ea2b6.zip
Repaired the 'Walk to' option.
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index 247bb2ce..76b8e4e2 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -72,7 +72,7 @@ void PopupMenu::showPopup(int mx, int my)
being = findNode(mx, my);
floorItem = find_floor_item_by_id(find_floor_item_by_cor(mx, my));
mX = mx;
- mY = mY;
+ mY = my;
browserBox->clearRows();
if (being)
@@ -193,8 +193,8 @@ void PopupMenu::handleLink(const std::string& link)
// Walk To action
else if ((link == "walk") && (mX != -1) && (mY != -1))
{
- //walk(mX, mY, 0);
- //player_node->setDestination(mX, mY);
+ walk(mX, mY, 0);
+ player_node->setDestination(mX, mY);
}
// Look To action