From 711db25dfa22ca2a82743e1d688b6c0b92ba463f Mon Sep 17 00:00:00 2001 From: Melanie Date: Sat, 11 Dec 2010 03:31:57 +0100 Subject: Allow floats in the list for llSetPayPrice and silently convert them to int, --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/ScriptEngine') 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 } int[] nPrice = new int[5]; nPrice[0]=price; - nPrice[1] = (LSL_Integer)quick_pay_buttons.Data[0]; - nPrice[2] = (LSL_Integer)quick_pay_buttons.Data[1]; - nPrice[3] = (LSL_Integer)quick_pay_buttons.Data[2]; - nPrice[4] = (LSL_Integer)quick_pay_buttons.Data[3]; + nPrice[1] = (LSL_Integer)Convert.ToInt32(quick_pay_buttons.Data[0]); + nPrice[2] = (LSL_Integer)Convert.ToInt32(quick_pay_buttons.Data[1]); + nPrice[3] = (LSL_Integer)Convert.ToInt32(quick_pay_buttons.Data[2]); + nPrice[4] = (LSL_Integer)Convert.ToInt32(quick_pay_buttons.Data[3]); m_host.ParentGroup.RootPart.PayPrice = nPrice; m_host.ParentGroup.HasGroupChanged = true; } -- cgit v1.1