From: Kenny G. <ken...@us...> - 2007-07-10 22:46:11
|
Update of /cvsroot/planeshift/planeshift/src/server/bulkobjects In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6338 Modified Files: pscharinventory.cpp Log Message: Removed debug printfs. Index: pscharinventory.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/server/bulkobjects/pscharinventory.cpp,v retrieving revision 1.56 retrieving revision 1.57 diff -C2 -d -r1.56 -r1.57 *** pscharinventory.cpp 10 Jul 2007 22:16:04 -0000 1.56 --- pscharinventory.cpp 10 Jul 2007 22:46:12 -0000 1.57 *************** *** 107,111 **** MathScriptVar* carry = maxCarryWeight->GetVar("MaxCarry"); maxWeight = carry->GetValue(); ! printf("Calculated maxWeight to be %1.2f", maxWeight); } --- 107,111 ---- MathScriptVar* carry = maxCarryWeight->GetVar("MaxCarry"); maxWeight = carry->GetValue(); ! //printf("Calculated maxWeight to be %1.2f", maxWeight); } *************** *** 122,126 **** MathScriptVar* carryAmount = maxCarryAmount->GetVar("MaxAmount"); maxSize = carryAmount->GetValue(); ! printf("Calculated maxSize to be %1.2f", maxSize); } --- 122,126 ---- MathScriptVar* carryAmount = maxCarryAmount->GetVar("MaxAmount"); maxSize = carryAmount->GetValue(); ! //printf("Calculated maxSize to be %1.2f", maxSize); } *************** *** 1058,1062 **** total += inventory[i].item->GetItemSize(); // * stackCount here? KWF - printf("Current total size available is %d.\n", total); return total; } --- 1058,1061 ---- *************** *** 1074,1078 **** total += inventory[i].item->GetContainerMaxSize(); // * stackCount here? KWF } - printf("Current total size available is %d.\n", total); return total; } --- 1073,1076 ---- *************** *** 1092,1096 **** total += inventory[i].item->GetWeight(); - printf("Current total weight is %1.1f.\n", total); return total; } --- 1090,1093 ---- *************** *** 1133,1137 **** } - printf("Current total contained weight is %1.1f.\n", total); return total; } --- 1130,1133 ---- *************** *** 1163,1167 **** } - printf("Current total contained size is %u.\n", total); return total; } --- 1159,1162 ---- *************** *** 1169,1174 **** size_t psCharacterInventory::HowManyCanFit(psItem* item) { - printf("Checking how many items can fit (%s)\n", item->GetName() ); - if ( !doRestrictions ) return 65535; // Fit any amount --- 1164,1167 ---- *************** *** 1348,1352 **** inventory[index].exchangeOfferSlot = toSlot; inventory[index].exchangeStackCount = stackCount; ! printf("Set item %s to offer slot %d, count %d.\n", inventory[index].item->GetName(),toSlot,stackCount); } } --- 1341,1345 ---- inventory[index].exchangeOfferSlot = toSlot; inventory[index].exchangeStackCount = stackCount; ! //printf("Set item %s to offer slot %d, count %d.\n", inventory[index].item->GetName(),toSlot,stackCount); } } *************** *** 1363,1367 **** for (size_t i=0; i < inventory.GetSize(); i++) { ! printf("Checking item %lu, %s in offered slot %d.\n",i,inventory[i].item->GetName(),inventory[i].exchangeOfferSlot); if (inventory[i].exchangeOfferSlot == slotID) return &inventory[i]; --- 1356,1360 ---- for (size_t i=0; i < inventory.GetSize(); i++) { ! //printf("Checking item %lu, %s in offered slot %d.\n",i,inventory[i].item->GetName(),inventory[i].exchangeOfferSlot); if (inventory[i].exchangeOfferSlot == slotID) return &inventory[i]; *************** *** 1407,1412 **** } - printf("psCharacterInventory::BeginExchange()\n"); - return true; } --- 1400,1403 ---- |