diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-05-12 08:11:35 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-05-12 08:12:31 -0600 |
commit | 657afb7b642d5b02289c6bb5bc883c2987cdf5d1 (patch) | |
tree | 26816e7e3f3acfd521844be85423a8b18d2443c5 /src/gui/equipmentwindow.cpp | |
parent | b4d5e2a9c92fe5b0f53c3d08b87c324960c3215c (diff) | |
download | mana-657afb7b642d5b02289c6bb5bc883c2987cdf5d1.tar.gz mana-657afb7b642d5b02289c6bb5bc883c2987cdf5d1.tar.bz2 mana-657afb7b642d5b02289c6bb5bc883c2987cdf5d1.tar.xz mana-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/gui/equipmentwindow.cpp')
-rw-r--r-- | src/gui/equipmentwindow.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/equipmentwindow.cpp b/src/gui/equipmentwindow.cpp index aa81361d..44006971 100644 --- a/src/gui/equipmentwindow.cpp +++ b/src/gui/equipmentwindow.cpp @@ -33,6 +33,9 @@ #include "item.h" #include "localplayer.h" +#include "net/inventoryhandler.h" +#include "net/net.h" + #include "resources/image.h" #include "resources/iteminfo.h" #include "resources/resourcemanager.h" @@ -176,7 +179,7 @@ void EquipmentWindow::action(const gcn::ActionEvent &event) mInventory->getItem(mEquipment->getEquipment(mSelected)) : mInventory->getItem(mEquipment->getArrows()); #endif - player_node->unequipItem(item); + Net::getInventoryHandler()->unequipItem(item); setSelected(-1); } } |