a few more changes on vectors etc

This commit is contained in:
UbitUmarov
2022-01-10 02:21:17 +00:00
parent 7d78f62d49
commit 9b33ef9c8c
17 changed files with 19 additions and 19 deletions

View File

@@ -5012,7 +5012,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{
Error("llRequestAgentData","Invalid UUID passed to llRequestAgentData.");
}
return "";
return String.Empty;
}
//bad if lm is HG
@@ -5226,7 +5226,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public void llCollisionSound(LSL_String impact_sound, LSL_Float impact_volume)
{
if(impact_sound == "")
if(String.IsNullOrEmpty(impact_sound.m_string))
{
m_host.CollisionSoundVolume = (float)impact_volume;
m_host.CollisionSound = m_host.invalidCollisionSoundUUID;

View File

@@ -165,7 +165,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine
// of all others so the m_DetachQuantum won't run out
// before attach(NULL_KEY) is executed.
case ScriptEventCode.attach:
if (evt.Params[0].ToString() == UUID.ZeroString)
if (evt.Params[0].ToString().Equals(UUID.ZeroString))
{
LinkedListNode<EventParams> lln2 = null;
for(lln2 = m_EventQueue.First; lln2 != null; lln2 = lln2.Next)