mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
== UUID.Zero is slow
This commit is contained in:
@@ -498,7 +498,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||
|
||||
public void SetEstateTerrainBaseTexture(IClientAPI remoteClient, int level, UUID texture)
|
||||
{
|
||||
if (texture == UUID.Zero)
|
||||
if (texture.IsZero())
|
||||
return;
|
||||
|
||||
switch (level)
|
||||
@@ -1185,7 +1185,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||
|
||||
private void HandleEstateTeleportOneUserHomeRequest(IClientAPI remover_client, UUID invoice, UUID senderID, UUID prey, bool kick)
|
||||
{
|
||||
if (prey == UUID.Zero)
|
||||
if (prey.IsZero())
|
||||
return;
|
||||
|
||||
EstateTeleportOneUserHomeRequest evOverride = OnEstateTeleportOneUserHomeRequest;
|
||||
|
||||
@@ -206,7 +206,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||
|
||||
private void OnEstateTeleportOneUserHomeRequest(IClientAPI client, UUID invoice, UUID senderID, UUID prey, bool kick)
|
||||
{
|
||||
if (prey == UUID.Zero)
|
||||
if (prey.IsZero())
|
||||
return;
|
||||
|
||||
if (!(client.Scene is Scene))
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||
// Disconnect the Telehub:
|
||||
public void Disconnect()
|
||||
{
|
||||
if (m_Scene.RegionInfo.RegionSettings.TelehubObject == UUID.Zero)
|
||||
if (m_Scene.RegionInfo.RegionSettings.TelehubObject.IsZero())
|
||||
return;
|
||||
|
||||
m_Scene.RegionInfo.RegionSettings.TelehubObject = UUID.Zero;
|
||||
@@ -69,7 +69,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||
// Add a SpawnPoint to the Telehub
|
||||
public void AddSpawnPoint(Vector3 point)
|
||||
{
|
||||
if (m_Scene.RegionInfo.RegionSettings.TelehubObject == UUID.Zero)
|
||||
if (m_Scene.RegionInfo.RegionSettings.TelehubObject.IsZero())
|
||||
return;
|
||||
|
||||
SceneObjectGroup grp = m_Scene.GetSceneObjectGroup(m_Scene.RegionInfo.RegionSettings.TelehubObject);
|
||||
@@ -85,7 +85,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||
// Remove a SpawnPoint from the Telehub
|
||||
public void RemoveSpawnPoint(int spawnpoint)
|
||||
{
|
||||
if (m_Scene.RegionInfo.RegionSettings.TelehubObject == UUID.Zero)
|
||||
if (m_Scene.RegionInfo.RegionSettings.TelehubObject.IsZero())
|
||||
return;
|
||||
|
||||
m_Scene.RegionInfo.RegionSettings.RemoveSpawnPoint(spawnpoint);
|
||||
|
||||
Reference in New Issue
Block a user