diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-02-23 23:46:23 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-02-23 23:46:23 +0000 |
commit | 5c1093ffa9fea3d979a720169e97ed31725e95c4 (patch) | |
tree | 3f40c4000c2f0317e12640eb818a781c3a892497 /src/graphic/graphic.cpp | |
parent | 1fcefe616a39c2e572b8078c5c51c8e81a59c487 (diff) | |
download | mana-client-5c1093ffa9fea3d979a720169e97ed31725e95c4.tar.gz mana-client-5c1093ffa9fea3d979a720169e97ed31725e95c4.tar.bz2 mana-client-5c1093ffa9fea3d979a720169e97ed31725e95c4.tar.xz mana-client-5c1093ffa9fea3d979a720169e97ed31725e95c4.zip |
Committed patch by Mra, which fixes multiple NPCs talks in one window and
moves the action listener used with BuySellDialog into that class.
Diffstat (limited to 'src/graphic/graphic.cpp')
-rw-r--r-- | src/graphic/graphic.cpp | 24 |
1 files changed, 1 insertions, 23 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(); |