diff options
author | Melanie | 2010-12-11 03:31:57 +0100 |
---|---|---|
committer | Melanie | 2010-12-11 03:31:57 +0100 |
commit | 711db25dfa22ca2a82743e1d688b6c0b92ba463f (patch) | |
tree | 3729dad2a7c132b8cba603cd0727ce444d6c4ee6 /OpenSim/Region/ScriptEngine/Shared/Api | |
parent | Merge branch 'master' into careminster-presence-refactor (diff) | |
download | opensim-SC-711db25dfa22ca2a82743e1d688b6c0b92ba463f.zip opensim-SC-711db25dfa22ca2a82743e1d688b6c0b92ba463f.tar.gz opensim-SC-711db25dfa22ca2a82743e1d688b6c0b92ba463f.tar.bz2 opensim-SC-711db25dfa22ca2a82743e1d688b6c0b92ba463f.tar.xz |
Allow floats in the list for llSetPayPrice and silently convert them to int,
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 1dd4ca4..05a4170 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -9808,10 +9808,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
9808 | } | 9808 | } |
9809 | int[] nPrice = new int[5]; | 9809 | int[] nPrice = new int[5]; |
9810 | nPrice[0]=price; | 9810 | nPrice[0]=price; |
9811 | nPrice[1] = (LSL_Integer)quick_pay_buttons.Data[0]; | 9811 | nPrice[1] = (LSL_Integer)Convert.ToInt32(quick_pay_buttons.Data[0]); |
9812 | nPrice[2] = (LSL_Integer)quick_pay_buttons.Data[1]; | 9812 | nPrice[2] = (LSL_Integer)Convert.ToInt32(quick_pay_buttons.Data[1]); |
9813 | nPrice[3] = (LSL_Integer)quick_pay_buttons.Data[2]; | 9813 | nPrice[3] = (LSL_Integer)Convert.ToInt32(quick_pay_buttons.Data[2]); |
9814 | nPrice[4] = (LSL_Integer)quick_pay_buttons.Data[3]; | 9814 | nPrice[4] = (LSL_Integer)Convert.ToInt32(quick_pay_buttons.Data[3]); |
9815 | m_host.ParentGroup.RootPart.PayPrice = nPrice; | 9815 | m_host.ParentGroup.RootPart.PayPrice = nPrice; |
9816 | m_host.ParentGroup.HasGroupChanged = true; | 9816 | m_host.ParentGroup.HasGroupChanged = true; |
9817 | } | 9817 | } |