summaryrefslogtreecommitdiff
path: root/src/inventory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r--src/inventory.cpp4
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);