summaryrefslogtreecommitdiff
path: root/src/gui/npcdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-23 23:17:19 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:17 +0300
commitc88734cc2b8a0785c23531ce70bf703887aa0c4b (patch)
treecdb4448b0bea29f9d9c61401ce91a00f92e2a5f5 /src/gui/npcdialog.cpp
parentd3994b21fda3e7d8ba417a382fc8f065a7bf1c52 (diff)
downloadmanaverse-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.cpp10
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);