From 5915dfc26f0fe02411588ddea2791d69cb67d1ed Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 17 Sep 2012 15:37:05 +0100 Subject: Make use of mesh cost functions --- OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs') diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs index 8adacab..0b5d3fa 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs @@ -27,9 +27,6 @@ namespace OpenSim.Region.ClientStack.Linden { float ModelMinCost = 5.0f; // try to favor small meshs versus sculpts - // scale prices relative to basic cost - const float ModelCostScale = 1.0f; - const float primCreationCost = 0.01f; // 256 prims cost extra 2.56 // weigthed size to money convertion @@ -70,7 +67,7 @@ namespace OpenSim.Region.ClientStack.Linden { totalcost = 0; error = string.Empty; - + if (resources == null || resources.instance_list == null || resources.instance_list.Array.Count == 0) @@ -184,7 +181,8 @@ namespace OpenSim.Region.ClientStack.Linden if (meshsfee < ModelMinCost) meshsfee = ModelMinCost; - meshsfee *= ModelCostScale; + // scale cost with basic cost changes relative to 10 + meshsfee *= (float)basicCost / 10.0f; meshsfee += 0.5f; // rounding totalcost += (int)meshsfee; -- cgit v1.1