aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs b/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs
index b003e1f..f378921 100644
--- a/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs
+++ b/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs
@@ -573,9 +573,18 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
573 /// <returns></returns> 573 /// <returns></returns>
574 private int GetFundsForAgentID(UUID AgentID) 574 private int GetFundsForAgentID(UUID AgentID)
575 { 575 {
576 int returnfunds = 90101; // Set it to the OpenSim version, plus the SC build number. Muahahaha; 576 int result = 0;
577 // Set it to the OpenSim version, plus the SC build number. Muahahaha;
578 string v = VersionInfo.VersionNumber + VersionInfo.SC_BUILD_NUMBER.PadLeft(3, '0');
579 try
580 {
581 result = Int32.Parse(v.Replace(".", ""));
582 }
583 catch (FormatException)
584 {
585 }
577 586
578 return returnfunds; 587 return result;
579 } 588 }
580 589
581 // private void SetLocalFundsForAgentID(UUID AgentID, int amount) 590 // private void SetLocalFundsForAgentID(UUID AgentID, int amount)