diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-23 23:17:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:17 +0300 |
commit | c88734cc2b8a0785c23531ce70bf703887aa0c4b (patch) | |
tree | cdb4448b0bea29f9d9c61401ce91a00f92e2a5f5 /src/gui/npcdialog.cpp | |
parent | d3994b21fda3e7d8ba417a382fc8f065a7bf1c52 (diff) | |
download | ManaVerse-c88734cc2b8a0785c23531ce70bf703887aa0c4b.tar.gz ManaVerse-c88734cc2b8a0785c23531ce70bf703887aa0c4b.tar.bz2 ManaVerse-c88734cc2b8a0785c23531ce70bf703887aa0c4b.tar.xz ManaVerse-c88734cc2b8a0785c23531ce70bf703887aa0c4b.zip |
remove most static methods from Client.
Diffstat (limited to 'src/gui/npcdialog.cpp')
-rw-r--r-- | src/gui/npcdialog.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp index 576db564b..bddbbaf46 100644 --- a/src/gui/npcdialog.cpp +++ b/src/gui/npcdialog.cpp @@ -291,7 +291,7 @@ void NpcDialog::action(const gcn::ActionEvent &event) { if (mActionState == NPC_ACTION_NEXT) { - if (!Client::limitPackets(PACKET_NPC_NEXT)) + if (!client->limitPackets(PACKET_NPC_NEXT)) return; nextDialog(); @@ -316,7 +316,7 @@ void NpcDialog::action(const gcn::ActionEvent &event) if (selectedIndex >= static_cast<int>(mItems.size()) || selectedIndex < 0 - || !Client::limitPackets(PACKET_NPC_INPUT)) + || !client->limitPackets(PACKET_NPC_INPUT)) { return; } @@ -329,14 +329,14 @@ void NpcDialog::action(const gcn::ActionEvent &event) } case NPC_INPUT_STRING: { - if (!Client::limitPackets(PACKET_NPC_INPUT)) + if (!client->limitPackets(PACKET_NPC_INPUT)) return; printText = mTextField->getText(); Net::getNpcHandler()->stringInput(mNpcId, printText); } case NPC_INPUT_INTEGER: { - if (!Client::limitPackets(PACKET_NPC_INPUT)) + if (!client->limitPackets(PACKET_NPC_INPUT)) return; printText = strprintf("%d", mIntField->getValue()); Net::getNpcHandler()->integerInput( @@ -344,7 +344,7 @@ void NpcDialog::action(const gcn::ActionEvent &event) } case NPC_INPUT_ITEM: { - if (!Client::limitPackets(PACKET_NPC_INPUT)) + if (!client->limitPackets(PACKET_NPC_INPUT)) return; const Item *const item = mInventory->getItem(0); |