Patch from DrSchofld (IBM). In his own words

structs (such as LLUUID) are considered values by mono. comparing them against null makes no sense and the mono compiler will flag that as evaluating to always false --- except if "cleverly" disguised. the attached patch fixes such an occurrence in  OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs.

[yes, i'm on a crusade against comparing structs against null, go ask jradford from libsl ;-)]
0.6.0-stable
Justin Clarke Casey 2008-03-18 11:32:44 +00:00
parent 443c66b432
commit f81c491725
1 changed files with 2 additions and 2 deletions

View File

@ -257,12 +257,12 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin
if (ang_obj > ts.arc) keep = false; if (ang_obj > ts.arc) keep = false;
} }
if (keep && (!ts.keyID.Equals(null)) && (ts.keyID != LLUUID.Zero) && (ts.keyID != ent.UUID)) if (keep && (ts.keyID != LLUUID.Zero) && (ts.keyID != ent.UUID))
{ {
keep = false; keep = false;
} }
if (keep&& (ts.name.Length > 0)) if (keep && (ts.name.Length > 0))
{ {
string avatarname=null; string avatarname=null;
string objectname=null; string objectname=null;