diff options
Diffstat (limited to 'src/graphic')
-rw-r--r-- | src/graphic/graphic.cpp | 24 | ||||
-rw-r--r-- | src/graphic/graphic.h | 8 |
2 files changed, 1 insertions, 31 deletions
diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp index 96f36bbd..8b13e0e9 100644 --- a/src/graphic/graphic.cpp +++ b/src/graphic/graphic.cpp @@ -75,28 +75,6 @@ void ChatListener::action(const std::string& eventId) } } -void BuySellListener::action(const std::string& eventId) -{ - int actionId = -1; - - if (eventId == "buy") { - actionId = 0; - } - else if (eventId == "sell") { - actionId = 1; - } - - if (actionId > -1) { - WFIFOW(0) = net_w_value(0x00c5); - WFIFOL(2) = net_l_value(current_npc); - WFIFOB(6) = net_b_value(actionId); - WFIFOSET(7); - } - - buySellDialog->setVisible(false); -} - - char hairtable[16][4][2] = { // S(x,y) W(x,y) N(x,y) E(x,y) { { 0, 0}, {-1, 2}, {-1, 2}, {0, 2} }, // STAND @@ -287,7 +265,7 @@ Engine::Engine() sellDialog = new SellDialog(); sellDialog->setVisible(false); - buySellDialog = new BuySellDialog(new BuySellListener()); + buySellDialog = new BuySellDialog(); buySellDialog->setVisible(false); inventoryWindow = new InventoryWindow(); diff --git a/src/graphic/graphic.h b/src/graphic/graphic.h index 765a6318..c660f49c 100644 --- a/src/graphic/graphic.h +++ b/src/graphic/graphic.h @@ -88,14 +88,6 @@ class ChatListener : public gcn::ActionListener { }; /** - * The action listener for the buy or sell dialog. - */ -class BuySellListener : public gcn::ActionListener { - public: - void action(const std::string& eventId); -}; - -/** * 9 images defining a rectangle. 4 corners, 4 sides and a middle area. The * topology is as follows: * |