summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-12-29 12:30:46 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-12-29 12:30:46 +0000
commitb32f28d74e9ec5cfe3bc443e2fbffd5de245fd0b (patch)
tree987e6805c3fc00966d1358b0a6a48c42bf1f0ec7 /src/gui/popupmenu.cpp
parent41101dbd7f38c7e9898422c755b8eaf379f1d7c1 (diff)
downloadmana-b32f28d74e9ec5cfe3bc443e2fbffd5de245fd0b.tar.gz
mana-b32f28d74e9ec5cfe3bc443e2fbffd5de245fd0b.tar.bz2
mana-b32f28d74e9ec5cfe3bc443e2fbffd5de245fd0b.tar.xz
mana-b32f28d74e9ec5cfe3bc443e2fbffd5de245fd0b.zip
Removed duplicate pick up code
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index b1046553..8d0ace57 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -177,9 +177,7 @@ void PopupMenu::handleLink(const std::string& link)
// Pick Up Floor Item action
else if ((link == "pickup") && mFloorItem != NULL)
{
- MessageOut outMsg;
- outMsg.writeInt16(CMSG_ITEM_PICKUP);
- outMsg.writeInt32(mFloorItem->getId());
+ pickUp(mFloorItem->getId());
}
// Look To action