Fixed some comparisons of LLUUIDs to null.

Thanks to DrSchofld for pointing this out.
This commit is contained in:
Jeff Ames
2008-03-19 09:36:13 +00:00
parent d135dad051
commit a0e1be3280
6 changed files with 13 additions and 19 deletions

View File

@@ -439,17 +439,15 @@ namespace OpenSim.Framework.UserManagement
userAgent.agentOnline = false;
userAgent.logoutTime = Util.UnixTimeSinceEpoch();
//userAgent.sessionID = LLUUID.Zero;
if (regionid != null)
if (regionid != LLUUID.Zero)
{
userAgent.currentRegion = regionid;
}
userAgent.currentHandle = regionhandle;
userAgent.currentPos = currentPos;
userProfile.currentAgent = userAgent;
CommitAgent(ref userProfile);
}
else

View File

@@ -359,7 +359,7 @@ namespace OpenSim.Framework
public bool shouldMasterAvatarDetailsBeAsked(string configuration_key)
{
if (MasterAvatarAssignedUUID.Equals(null) || MasterAvatarAssignedUUID.ToString() == LLUUID.Zero.ToString())
if (MasterAvatarAssignedUUID == LLUUID.Zero)
{
return true;
}