From 2b4fecc8a93722d3cb080edcae436c329641937b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 3 Aug 2011 22:23:30 +0300 Subject: Fix code style and remove some unused variabled. --- src/net/ea/inventoryhandler.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/net/ea/inventoryhandler.cpp') diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp index 04967b0a7..acd674d12 100644 --- a/src/net/ea/inventoryhandler.cpp +++ b/src/net/ea/inventoryhandler.cpp @@ -158,7 +158,8 @@ int InventoryHandler::getSlot(int eAthenaSlot) return EQUIP_POINTS[position]; } -void InventoryHandler::processPlayerInventory(Net::MessageIn &msg, bool playerInvintory) +void InventoryHandler::processPlayerInventory(Net::MessageIn &msg, + bool playerInvintory) { int index, amount, itemId, arrow; int cards[4], itemType; @@ -450,7 +451,7 @@ void InventoryHandler::processPlayerStorageAdd(Net::MessageIn &msg) { int index, amount, itemId, refine; unsigned char identified; - int cards[4]; +// int cards[4]; // Move an item into storage index = msg.readInt16() - STORAGE_OFFSET; @@ -460,7 +461,7 @@ void InventoryHandler::processPlayerStorageAdd(Net::MessageIn &msg) msg.readInt8(); // attribute refine = msg.readInt8(); for (int i = 0; i < 4; i++) - cards[i] = msg.readInt16(); + msg.readInt16(); // card i if (Item *item = mStorage->getItem(index)) { @@ -583,10 +584,10 @@ void InventoryHandler::processPlayerEquip(Net::MessageIn &msg) void InventoryHandler::processPlayerUnEquip(Net::MessageIn &msg) { - int index, equipType; + int equipType; int flag; - index = msg.readInt16() - INVENTORY_OFFSET; + msg.readInt16(); // inder val - INVENTORY_OFFSET; equipType = msg.readInt16(); flag = msg.readInt8(); -- cgit v1.2.3-70-g09d2