mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
Allow floats in the list for llSetPayPrice and silently convert them to int,
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user