summaryrefslogtreecommitdiff
path: root/src/inventory.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-09-19 12:28:42 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-09-19 12:28:42 +0000
commit2c4d4ecc19fc8308b2772e4ffe6570ca362264d1 (patch)
treea4b6d78a89bfd12b3667129bd0bae63a805682cd /src/inventory.cpp
parentcf0f74488b0f2057bc535774dc6a2c871311932f (diff)
downloadmana-client-2c4d4ecc19fc8308b2772e4ffe6570ca362264d1.tar.gz
mana-client-2c4d4ecc19fc8308b2772e4ffe6570ca362264d1.tar.bz2
mana-client-2c4d4ecc19fc8308b2772e4ffe6570ca362264d1.tar.xz
mana-client-2c4d4ecc19fc8308b2772e4ffe6570ca362264d1.zip
Got rid of writeSet() calls.
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r--src/inventory.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp
index f85e12ef..39860261 100644
--- a/src/inventory.cpp
+++ b/src/inventory.cpp
@@ -27,7 +27,6 @@
#include "item.h"
#include "net/messageout.h"
-#include "net/network.h"
#include "net/protocol.h"
Inventory::Inventory()
@@ -98,7 +97,6 @@ int Inventory::useItem(Item *item)
outMsg.writeShort(item->getInvIndex());
outMsg.writeLong(item->getId());
// Note: id is dest of item, usually player_node->account_ID ??
- writeSet(8);
return 0;
}
@@ -109,7 +107,6 @@ int Inventory::dropItem(Item *item, int quantity)
outMsg.writeShort(CMSG_PLAYER_INVENTORY_DROP);
outMsg.writeShort(item->getInvIndex());
outMsg.writeShort(quantity);
- writeSet(6);
return 0;
}
@@ -119,7 +116,6 @@ void Inventory::equipItem(Item *item)
outMsg.writeShort(CMSG_PLAYER_EQUIP);
outMsg.writeShort(item->getInvIndex());
outMsg.writeShort(0);
- writeSet(6);
}
void Inventory::unequipItem(Item *item)
@@ -127,7 +123,6 @@ void Inventory::unequipItem(Item *item)
MessageOut outMsg;
outMsg.writeShort(CMSG_PLAYER_UNEQUIP);
outMsg.writeShort(item->getInvIndex());
- writeSet(4);
// Tidy equipment directly to avoid weapon still shown bug, by instance
Equipment::getInstance()->removeEquipment(item);