summaryrefslogtreecommitdiff
path: root/src/itemshortcut.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-12 08:11:35 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-12 08:12:31 -0600
commit657afb7b642d5b02289c6bb5bc883c2987cdf5d1 (patch)
tree26816e7e3f3acfd521844be85423a8b18d2443c5 /src/itemshortcut.cpp
parentb4d5e2a9c92fe5b0f53c3d08b87c324960c3215c (diff)
downloadmana-client-657afb7b642d5b02289c6bb5bc883c2987cdf5d1.tar.gz
mana-client-657afb7b642d5b02289c6bb5bc883c2987cdf5d1.tar.bz2
mana-client-657afb7b642d5b02289c6bb5bc883c2987cdf5d1.tar.xz
mana-client-657afb7b642d5b02289c6bb5bc883c2987cdf5d1.zip
Remove methods from LocalPlayer that just call Net
And make a few others like that, and remove them too.
Diffstat (limited to 'src/itemshortcut.cpp')
-rw-r--r--src/itemshortcut.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/itemshortcut.cpp b/src/itemshortcut.cpp
index bd247300..6024e67a 100644
--- a/src/itemshortcut.cpp
+++ b/src/itemshortcut.cpp
@@ -25,6 +25,9 @@
#include "itemshortcut.h"
#include "localplayer.h"
+#include "net/inventoryhandler.h"
+#include "net/net.h"
+
#include "utils/stringutils.h"
ItemShortcut::ItemShortcut *itemShortcut;
@@ -72,16 +75,14 @@ void ItemShortcut::useItem(int index)
{
if (item->isEquipment())
{
-#ifdef EATHENA_SUPPORT
if (item->isEquipped())
- player_node->unequipItem(item);
+ Net::getInventoryHandler()->unequipItem(item);
else
-#endif
- player_node->equipItem(item);
+ Net::getInventoryHandler()->equipItem(item);
}
else
{
- player_node->useItem(item);
+ Net::getInventoryHandler()->useItem(item);
}
}
}