Fix llParticleSystem to accept LSL variables and LSL constants in place

of the named constants for the rule selector.
Information provided by Snowcrash
prioritization
Melanie 2009-10-21 20:47:24 +01:00
parent 8dd15fd5a5
commit d88bb83136
1 changed files with 1 additions and 1 deletions

View File

@ -5844,7 +5844,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
for (int i = 0; i < rules.Length; i += 2) for (int i = 0; i < rules.Length; i += 2)
{ {
switch ((int)rules.Data[i]) switch (Convert.ToInt32(rules.Data[i]))
{ {
case (int)ScriptBaseClass.PSYS_PART_FLAGS: case (int)ScriptBaseClass.PSYS_PART_FLAGS:
prules.PartDataFlags = (Primitive.ParticleSystem.ParticleDataFlags)(uint)rules.GetLSLIntegerItem(i + 1); prules.PartDataFlags = (Primitive.ParticleSystem.ParticleDataFlags)(uint)rules.GetLSLIntegerItem(i + 1);