aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs8
1 files changed, 3 insertions, 5 deletions
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
27 { 27 {
28 float ModelMinCost = 5.0f; // try to favor small meshs versus sculpts 28 float ModelMinCost = 5.0f; // try to favor small meshs versus sculpts
29 29
30 // scale prices relative to basic cost
31 const float ModelCostScale = 1.0f;
32
33 const float primCreationCost = 0.01f; // 256 prims cost extra 2.56 30 const float primCreationCost = 0.01f; // 256 prims cost extra 2.56
34 31
35 // weigthed size to money convertion 32 // weigthed size to money convertion
@@ -70,7 +67,7 @@ namespace OpenSim.Region.ClientStack.Linden
70 { 67 {
71 totalcost = 0; 68 totalcost = 0;
72 error = string.Empty; 69 error = string.Empty;
73 70
74 if (resources == null || 71 if (resources == null ||
75 resources.instance_list == null || 72 resources.instance_list == null ||
76 resources.instance_list.Array.Count == 0) 73 resources.instance_list.Array.Count == 0)
@@ -184,7 +181,8 @@ namespace OpenSim.Region.ClientStack.Linden
184 if (meshsfee < ModelMinCost) 181 if (meshsfee < ModelMinCost)
185 meshsfee = ModelMinCost; 182 meshsfee = ModelMinCost;
186 183
187 meshsfee *= ModelCostScale; 184 // scale cost with basic cost changes relative to 10
185 meshsfee *= (float)basicCost / 10.0f;
188 meshsfee += 0.5f; // rounding 186 meshsfee += 0.5f; // rounding
189 187
190 totalcost += (int)meshsfee; 188 totalcost += (int)meshsfee;