summaryrefslogtreecommitdiff
path: root/src/gui/trade.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-09-19 11:15:37 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-09-19 11:15:37 +0000
commitaabe59377baebe1d9dbb3daeb323bc7df475910d (patch)
tree0d4b8a730160e4da2aaea57cba2644a31d7ee59e /src/gui/trade.cpp
parent957cee04cbbb829c0d476b1dfb2a19ee74856c5f (diff)
downloadmana-aabe59377baebe1d9dbb3daeb323bc7df475910d.tar.gz
mana-aabe59377baebe1d9dbb3daeb323bc7df475910d.tar.bz2
mana-aabe59377baebe1d9dbb3daeb323bc7df475910d.tar.xz
mana-aabe59377baebe1d9dbb3daeb323bc7df475910d.zip
Removed useless flush() calls.
Diffstat (limited to 'src/gui/trade.cpp')
-rw-r--r--src/gui/trade.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gui/trade.cpp b/src/gui/trade.cpp
index 6069b768..d4c91d19 100644
--- a/src/gui/trade.cpp
+++ b/src/gui/trade.cpp
@@ -247,7 +247,6 @@ void TradeWindow::tradeItem(Item *item, int quantity)
outMsg.writeShort(item->getInvIndex());
outMsg.writeLong(quantity);
writeSet(8);
- flush();
}
void TradeWindow::mouseClick(int x, int y, int button, int count)
@@ -319,7 +318,6 @@ void TradeWindow::action(const std::string &eventId)
MessageOut outMsg;
outMsg.writeShort(CMSG_TRADE_CANCEL_REQUEST);
writeSet(2);
- flush();
}
else if (eventId == "ok")
{
@@ -336,7 +334,6 @@ void TradeWindow::action(const std::string &eventId)
outMsg.writeShort(0);
outMsg.writeLong(tempInt);
writeSet(8);
- flush();
} else {
moneyField->setText("");
}
@@ -344,13 +341,11 @@ void TradeWindow::action(const std::string &eventId)
MessageOut outMsg;
outMsg.writeShort(CMSG_TRADE_ADD_COMPLETE);
writeSet(2);
- flush();
}
else if (eventId == "trade")
{
MessageOut outMsg;
outMsg.writeShort(CMSG_TRADE_OK);
writeSet(2);
- flush();
}
}