diff options
author | onefang | 2019-08-15 05:46:39 +1000 |
---|---|---|
committer | onefang | 2019-08-15 05:46:39 +1000 |
commit | bcd84203b77d0df99d681c64e4060693cf283134 (patch) | |
tree | 0274942a61c7dabc49ba321e4c5d147486dca742 /OpenSim/Region/OptionalModules/World | |
parent | Teleport home from off grid shouldn't land on roofs either. (diff) | |
download | opensim-SC-bcd84203b77d0df99d681c64e4060693cf283134.zip opensim-SC-bcd84203b77d0df99d681c64e4060693cf283134.tar.gz opensim-SC-bcd84203b77d0df99d681c64e4060693cf283134.tar.bz2 opensim-SC-bcd84203b77d0df99d681c64e4060693cf283134.tar.xz |
Actually calculate the sample money modules fake balance.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs | 13 |
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) |