From 1202aac397dcbc94537ad4bff9d03a79896ea2b6 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Thu, 30 Jun 2005 20:35:45 +0000 Subject: Repaired the 'Walk to' option. --- src/gui/popupmenu.cpp | 6 +++--- 1 file 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 -- cgit v1.2.3-70-g09d2