All pastes #1787385 Raw Edit

clueless

public text v1 · immutable
#1787385 ·published 2010-02-05 20:27 UTC
rendered paste body
Index: src/server/bulkobjects/pscharinventory.cpp===================================================================--- src/server/bulkobjects/pscharinventory.cpp	(revision 5444)+++ src/server/bulkobjects/pscharinventory.cpp	(working copy)@@ -596,7 +596,7 @@                  if (tocheck->GetContainerID())         {-            size_t size = FindItemID(tocheck->GetContainerID())->GetContainerMaxSize() - GetContainedSize(FindItemID(tocheck->GetContainerID()));+            float size = FindItemID(tocheck->GetContainerID())->GetContainerMaxSize() - GetContainedSize(FindItemID(tocheck->GetContainerID()));             if(size/item->GetItemSize() < fits)                 fits = size/item->GetItemSize();         }@@ -665,7 +665,7 @@         itemIndices = FindCompatibleStackedItems(item);         for (i=0; i<itemIndices.GetSize(); i++)         {-            int size=0;+            float size=0;             if(inventory[itemIndices[i]].item->GetContainerID()){                 size = GetContainedSize(FindItemID(inventory[itemIndices[i]].item->GetContainerID()));             }@@ -744,7 +744,7 @@         {             if (inventory[i].item->GetIsContainer())             {-                int size = GetContainedSize(inventory[i].item);+                float size = GetContainedSize(inventory[i].item);                 if (size + item->GetTotalStackSize() <= inventory[i].item->GetContainerMaxSize()) // adequate space in container                 {                     INVENTORY_SLOT_NUMBER containerSlot = (INVENTORY_SLOT_NUMBER)FindFirstOpenSlot(inventory[i].item);