Add a missing brace, remove a useless temp variable, enable charging.

avinationmerge
Melanie 2012-09-11 22:52:11 +02:00
parent 013e94af5d
commit fd1ee58f87
1 changed files with 3 additions and 6 deletions

View File

@ -482,7 +482,9 @@ namespace OpenSim.Region.ClientStack.Linden
cost = textures_cost;
}
else
{
cost = (uint)mm.UploadCharge;
}
if (!mm.UploadCovered(client.AgentId, (int)cost))
{
@ -505,14 +507,9 @@ namespace OpenSim.Region.ClientStack.Linden
UUID parentFolder = llsdRequest.folder_id;
string uploaderPath = Util.RandomClass.Next(5000, 8000).ToString("0000");
uint uploadCost = cost;
// don't charge for meshs until we done them
if (llsdRequest.asset_type == "mesh")
uploadCost = 0;
AssetUploaderWithCost uploader =
new AssetUploaderWithCost(assetName, assetDes, newAsset, newInvItem, parentFolder, llsdRequest.inventory_type,
llsdRequest.asset_type, capsBase + uploaderPath, m_HostCapsObj.HttpListener, m_dumpAssetsToFile, uploadCost);
llsdRequest.asset_type, capsBase + uploaderPath, m_HostCapsObj.HttpListener, m_dumpAssetsToFile, cost);
m_HostCapsObj.HttpListener.AddStreamHandler(
new BinaryStreamHandler(