Fix a few mono compiler warnings. Minor cleanup.
parent
cd1978b424
commit
a8aeec29da
|
@ -83,7 +83,7 @@ namespace OpenSim.Region.Environment
|
|||
}
|
||||
|
||||
// If there is no master avatar, return false
|
||||
if (m_scene.RegionInfo.MasterAvatarAssignedUUID != null)
|
||||
if (!m_scene.RegionInfo.MasterAvatarAssignedUUID.Equals(null))
|
||||
{
|
||||
return m_scene.RegionInfo.MasterAvatarAssignedUUID == user;
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ namespace OpenSim.Region.Environment
|
|||
{
|
||||
return true;
|
||||
}
|
||||
if (user != null)
|
||||
if (!user.Equals(null))
|
||||
{
|
||||
LLUUID[] estatemanagers = m_scene.RegionInfo.EstateSettings.estateManagers;
|
||||
for (int i = 0; i < estatemanagers.Length; i++)
|
||||
|
|
|
@ -342,7 +342,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
asset.Description = description;
|
||||
asset.InvType = invType;
|
||||
asset.Type = assetType;
|
||||
asset.FullID = LLUUID.Random(); // TODO: check for conflicts
|
||||
asset.FullID = LLUUID.Random();
|
||||
asset.Data = (data == null) ? new byte[1] : data;
|
||||
return asset;
|
||||
}
|
||||
|
@ -781,7 +781,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
InventoryItemBase item = new InventoryItemBase();
|
||||
item.avatarID = remoteClient.AgentId;
|
||||
item.creatorsID = remoteClient.AgentId;
|
||||
item.inventoryID = LLUUID.Random(); // TODO: check for conflicts
|
||||
item.inventoryID = LLUUID.Random();
|
||||
item.assetID = asset.FullID;
|
||||
item.inventoryDescription = asset.Description;
|
||||
item.inventoryName = asset.Name;
|
||||
|
|
|
@ -258,7 +258,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugin
|
|||
if (ang_obj > ts.arc) keep = false;
|
||||
}
|
||||
|
||||
if (keep && (ts.keyID != null) && (ts.keyID != LLUUID.Zero) && (ts.keyID != ent.UUID))
|
||||
if (keep && (!ts.keyID.Equals(null)) && (ts.keyID != LLUUID.Zero) && (ts.keyID != ent.UUID))
|
||||
{
|
||||
keep = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue