aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs18
1 files changed, 9 insertions, 9 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 33aa905..518e37b 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -1432,7 +1432,7 @@ namespace OpenSim.Region.ScriptEngine.Common
1432 m_host.Sound = key; 1432 m_host.Sound = key;
1433 } 1433 }
1434 // else try to locate the name in inventory of object. found returns key, 1434 // else try to locate the name in inventory of object. found returns key,
1435 // not found returns LLUUID.Zero 1435 // not found returns LLUUID.Zero
1436 else 1436 else
1437 { 1437 {
1438 m_host.Sound = InventoryKey(sound.ToString()); 1438 m_host.Sound = InventoryKey(sound.ToString());
@@ -1477,7 +1477,7 @@ namespace OpenSim.Region.ScriptEngine.Common
1477 m_host.Sound = LLUUID.Zero; 1477 m_host.Sound = LLUUID.Zero;
1478 m_host.SoundGain = 0; 1478 m_host.SoundGain = 0;
1479 m_host.SoundFlags = 0; 1479 m_host.SoundFlags = 0;
1480 m_host.SoundRadius = 0; 1480 m_host.SoundRadius = 0;
1481 1481
1482 m_host.SendFullUpdateToAllClients(); 1482 m_host.SendFullUpdateToAllClients();
1483 1483
@@ -3871,7 +3871,7 @@ namespace OpenSim.Region.ScriptEngine.Common
3871 { 3871 {
3872 // Finally got to the first line of the notecard 3872 // Finally got to the first line of the notecard
3873 // now find the end of the notecard text delimited by }<LF> 3873 // now find the end of the notecard text delimited by }<LF>
3874 // parse the lines, delimited by <LF> 3874 // parse the lines, delimited by <LF>
3875 notecardIndex = dataString.IndexOf("\n", notecardIndex); 3875 notecardIndex = dataString.IndexOf("\n", notecardIndex);
3876 notecardIndex++; // get past delimiter 3876 notecardIndex++; // get past delimiter
3877 3877
@@ -5627,10 +5627,10 @@ namespace OpenSim.Region.ScriptEngine.Common
5627 5627
5628 RegionInfo info = m_ScriptEngine.World.RequestClosestRegion(simulator); 5628 RegionInfo info = m_ScriptEngine.World.RequestClosestRegion(simulator);
5629 5629
5630 switch(data) 5630 switch (data)
5631 { 5631 {
5632 case 5: // DATA_SIM_POS 5632 case 5: // DATA_SIM_POS
5633 if(info == null) 5633 if (info == null)
5634 return LLUUID.Zero.ToString(); 5634 return LLUUID.Zero.ToString();
5635 reply = new LSL_Types.Vector3( 5635 reply = new LSL_Types.Vector3(
5636 info.RegionLocX * Constants.RegionSize, 5636 info.RegionLocX * Constants.RegionSize,
@@ -5638,18 +5638,18 @@ namespace OpenSim.Region.ScriptEngine.Common
5638 0).ToString(); 5638 0).ToString();
5639 break; 5639 break;
5640 case 6: // DATA_SIM_STATUS 5640 case 6: // DATA_SIM_STATUS
5641 if(info != null) 5641 if (info != null)
5642 reply = "up"; // Duh! 5642 reply = "up"; // Duh!
5643 else 5643 else
5644 reply = "unknown"; 5644 reply = "unknown";
5645 break; 5645 break;
5646 case 7: // DATA_SIM_RATING 5646 case 7: // DATA_SIM_RATING
5647 if(info == null) 5647 if (info == null)
5648 return LLUUID.Zero.ToString(); 5648 return LLUUID.Zero.ToString();
5649 int access = (int)info.EstateSettings.simAccess; 5649 int access = (int)info.EstateSettings.simAccess;
5650 if(access == 21) 5650 if (access == 21)
5651 reply = "MATURE"; 5651 reply = "MATURE";
5652 else if(access == 13) 5652 else if (access == 13)
5653 reply = "MATURE"; 5653 reply = "MATURE";
5654 else 5654 else
5655 reply = "UNKNOWN"; 5655 reply = "UNKNOWN";