diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-09-19 11:15:37 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-09-19 11:15:37 +0000 |
commit | aabe59377baebe1d9dbb3daeb323bc7df475910d (patch) | |
tree | 0d4b8a730160e4da2aaea57cba2644a31d7ee59e /src/inventory.cpp | |
parent | 957cee04cbbb829c0d476b1dfb2a19ee74856c5f (diff) | |
download | mana-aabe59377baebe1d9dbb3daeb323bc7df475910d.tar.gz mana-aabe59377baebe1d9dbb3daeb323bc7df475910d.tar.bz2 mana-aabe59377baebe1d9dbb3daeb323bc7df475910d.tar.xz mana-aabe59377baebe1d9dbb3daeb323bc7df475910d.zip |
Removed useless flush() calls.
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r-- | src/inventory.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp index d7632737..f85e12ef 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -99,7 +99,6 @@ int Inventory::useItem(Item *item) outMsg.writeLong(item->getId()); // Note: id is dest of item, usually player_node->account_ID ?? writeSet(8); - flush(); return 0; } @@ -111,7 +110,6 @@ int Inventory::dropItem(Item *item, int quantity) outMsg.writeShort(item->getInvIndex()); outMsg.writeShort(quantity); writeSet(6); - flush(); return 0; } @@ -122,7 +120,6 @@ void Inventory::equipItem(Item *item) outMsg.writeShort(item->getInvIndex()); outMsg.writeShort(0); writeSet(6); - flush(); } void Inventory::unequipItem(Item *item) @@ -131,7 +128,6 @@ void Inventory::unequipItem(Item *item) outMsg.writeShort(CMSG_PLAYER_UNEQUIP); outMsg.writeShort(item->getInvIndex()); writeSet(4); - flush(); // Tidy equipment directly to avoid weapon still shown bug, by instance Equipment::getInstance()->removeEquipment(item); |