summaryrefslogtreecommitdiff
path: root/src/gui/buysell.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-05 19:17:33 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-05 19:17:33 -0600
commita0c7d1f61783e77e552896824855377e4bb43f8d (patch)
treee952181b83482abeffbd8ad9c62789b8f72e42e5 /src/gui/buysell.cpp
parent9113afb868f6c1da5911437d3ddabdcf169cbec2 (diff)
downloadmana-a0c7d1f61783e77e552896824855377e4bb43f8d.tar.gz
mana-a0c7d1f61783e77e552896824855377e4bb43f8d.tar.bz2
mana-a0c7d1f61783e77e552896824855377e4bb43f8d.tar.xz
mana-a0c7d1f61783e77e552896824855377e4bb43f8d.zip
Implement TMWServ's NpcHandler
Diffstat (limited to 'src/gui/buysell.cpp')
-rw-r--r--src/gui/buysell.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/buysell.cpp b/src/gui/buysell.cpp
index 33e12e87..80e2cdfe 100644
--- a/src/gui/buysell.cpp
+++ b/src/gui/buysell.cpp
@@ -25,7 +25,8 @@
#include "gui/button.h"
-#include "net/ea/npchandler.h"
+#include "net/net.h"
+#include "net/npchandler.h"
#include "utils/gettext.h"
@@ -81,13 +82,11 @@ void BuySellDialog::action(const gcn::ActionEvent &event)
if (event.getId() == "Buy")
{
- // Net::getNpcHandler()->buy(current_npc);
- npcHandler->buy(current_npc);
+ Net::getNpcHandler()->buy(current_npc);
}
else if (event.getId() == "Sell")
{
- // Net::getNpcHandler()->buy(current_npc);
- npcHandler->sell(current_npc);
+ Net::getNpcHandler()->buy(current_npc);
}
else if (event.getId() == "Cancel")
{