Allow floats in the list for llSetPayPrice and silently convert them to int,
parent
7fef89847c
commit
711db25dfa
|
@ -9808,10 +9808,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
}
|
}
|
||||||
int[] nPrice = new int[5];
|
int[] nPrice = new int[5];
|
||||||
nPrice[0]=price;
|
nPrice[0]=price;
|
||||||
nPrice[1] = (LSL_Integer)quick_pay_buttons.Data[0];
|
nPrice[1] = (LSL_Integer)Convert.ToInt32(quick_pay_buttons.Data[0]);
|
||||||
nPrice[2] = (LSL_Integer)quick_pay_buttons.Data[1];
|
nPrice[2] = (LSL_Integer)Convert.ToInt32(quick_pay_buttons.Data[1]);
|
||||||
nPrice[3] = (LSL_Integer)quick_pay_buttons.Data[2];
|
nPrice[3] = (LSL_Integer)Convert.ToInt32(quick_pay_buttons.Data[2]);
|
||||||
nPrice[4] = (LSL_Integer)quick_pay_buttons.Data[3];
|
nPrice[4] = (LSL_Integer)Convert.ToInt32(quick_pay_buttons.Data[3]);
|
||||||
m_host.ParentGroup.RootPart.PayPrice = nPrice;
|
m_host.ParentGroup.RootPart.PayPrice = nPrice;
|
||||||
m_host.ParentGroup.HasGroupChanged = true;
|
m_host.ParentGroup.HasGroupChanged = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue