diff options
author | onefang | 2020-09-09 01:11:24 +1000 |
---|---|---|
committer | onefang | 2020-09-09 01:11:24 +1000 |
commit | 76a38dbc31c98bd8f40b219a28f22d36493c95d9 (patch) | |
tree | 43f0d68fe2e46286da74f986680e1e05c2514422 /OpenSim/Region/OptionalModules | |
parent | Add a missing .keep. (diff) | |
download | opensim-SC-76a38dbc31c98bd8f40b219a28f22d36493c95d9.zip opensim-SC-76a38dbc31c98bd8f40b219a28f22d36493c95d9.tar.gz opensim-SC-76a38dbc31c98bd8f40b219a28f22d36493c95d9.tar.bz2 opensim-SC-76a38dbc31c98bd8f40b219a28f22d36493c95d9.tar.xz |
Update version number stuff, and hack it into the money display.
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 b32a429..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 = 0; | 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) |