mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
* Apply http://opensimulator.org/mantis/view.php?id=2205 with a few small tweaks
* LSL Conformance: llSetPayPrice should accept more than four arguments in list * Thanks kcozens!
This commit is contained in:
@@ -7474,9 +7474,9 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
if (quick_pay_buttons.Data.Length != 4)
|
||||
if (quick_pay_buttons.Data.Length < 4)
|
||||
{
|
||||
LSLError("List must have 4 elements");
|
||||
LSLError("List must have at least 4 elements");
|
||||
return;
|
||||
}
|
||||
m_host.ParentGroup.RootPart.PayPrice[0]=price;
|
||||
|
||||
@@ -7279,9 +7279,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
if (quick_pay_buttons.Data.Length != 4)
|
||||
if (quick_pay_buttons.Data.Length < 4)
|
||||
{
|
||||
LSLError("List must have 4 elements");
|
||||
LSLError("List must have at least 4 elements");
|
||||
return;
|
||||
}
|
||||
m_host.ParentGroup.RootPart.PayPrice[0]=price;
|
||||
|
||||
Reference in New Issue
Block a user