move along, nothing to see here. just a couple of lazy variables.
parent
333b741e30
commit
3d26e6ede0
|
@ -122,7 +122,8 @@ namespace OpenSim.Region.Environment.Modules.Scripting.LoadImageURL
|
|||
{
|
||||
WebRequest request = HttpWebRequest.Create(url);
|
||||
RequestState state = new RequestState((HttpWebRequest) request, requestID);
|
||||
IAsyncResult result = request.BeginGetResponse(new AsyncCallback(HttpRequestReturn), state);
|
||||
// IAsyncResult result = request.BeginGetResponse(new AsyncCallback(HttpRequestReturn), state);
|
||||
request.BeginGetResponse(new AsyncCallback(HttpRequestReturn), state);
|
||||
|
||||
TimeSpan t = (DateTime.UtcNow - new DateTime(1970, 1, 1));
|
||||
state.TimeOfRequest = (int) t.TotalSeconds;
|
||||
|
|
|
@ -500,7 +500,8 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
|
|||
|
||||
for (int i = 0; i < uuidarr.Length; i++)
|
||||
{
|
||||
string lookupname = m_scene.CommsManager.UUIDNameRequestString(uuidarr[i]);
|
||||
// string lookupname = m_scene.CommsManager.UUIDNameRequestString(uuidarr[i]);
|
||||
m_scene.CommsManager.UUIDNameRequestString(uuidarr[i]);
|
||||
// we drop it. It gets cached though... so we're ready for the next request.
|
||||
}
|
||||
}
|
||||
|
|
|
@ -310,7 +310,7 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
|
|||
objectOwnerMask |= (uint)LLObject.ObjectFlags.ObjectYouOwner | (uint)LLObject.ObjectFlags.ObjectOwnerModify;
|
||||
|
||||
// Customize the GroupMask
|
||||
uint objectGroupMask = ApplyObjectModifyMasks(task.GroupMask, objflags);
|
||||
// uint objectGroupMask = ApplyObjectModifyMasks(task.GroupMask, objflags);
|
||||
|
||||
// Customize the EveryoneMask
|
||||
uint objectEveryoneMask = ApplyObjectModifyMasks(task.EveryoneMask, objflags);
|
||||
|
@ -655,10 +655,10 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
|
|||
SceneObjectGroup task = (SceneObjectGroup)m_scene.Entities[objectID];
|
||||
|
||||
|
||||
LLUUID taskOwner = null;
|
||||
// LLUUID taskOwner = null;
|
||||
// Added this because at this point in time it wouldn't be wise for
|
||||
// the administrator object permissions to take effect.
|
||||
LLUUID objectOwner = task.OwnerID;
|
||||
// LLUUID objectOwner = task.OwnerID;
|
||||
|
||||
// Anyone can move
|
||||
if ((task.RootPart.EveryoneMask & PERM_MOVE) != 0)
|
||||
|
@ -842,10 +842,10 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
|
|||
}
|
||||
|
||||
SceneObjectGroup task = (SceneObjectGroup)m_scene.Entities[objectID];
|
||||
LLUUID taskOwner = null;
|
||||
// LLUUID taskOwner = null;
|
||||
// Added this because at this point in time it wouldn't be wise for
|
||||
// the administrator object permissions to take effect.
|
||||
LLUUID objectOwner = task.OwnerID;
|
||||
// LLUUID objectOwner = task.OwnerID;
|
||||
|
||||
|
||||
if ((task.RootPart.EveryoneMask & PERM_COPY) != 0)
|
||||
|
|
|
@ -177,7 +177,8 @@ namespace OpenSim.Region.Environment.Modules.World.Serialiser
|
|||
{
|
||||
if (region.RegionInfo.RegionName == (string) args[0])
|
||||
{
|
||||
List<string> results = SerialiseRegion(region, m_savedir + region.RegionInfo.RegionID.ToString() + "/");
|
||||
// List<string> results = SerialiseRegion(region, m_savedir + region.RegionInfo.RegionID.ToString() + "/");
|
||||
SerialiseRegion(region, m_savedir + region.RegionInfo.RegionID.ToString() + "/");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -186,7 +187,8 @@ namespace OpenSim.Region.Environment.Modules.World.Serialiser
|
|||
{
|
||||
foreach (Scene region in m_regions)
|
||||
{
|
||||
List<string> results = SerialiseRegion(region, m_savedir + region.RegionInfo.RegionID.ToString() + "/");
|
||||
// List<string> results = SerialiseRegion(region, m_savedir + region.RegionInfo.RegionID.ToString() + "/");
|
||||
SerialiseRegion(region, m_savedir + region.RegionInfo.RegionID.ToString() + "/");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1096,7 +1096,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
SceneObjectGroup group = GetGroupByPrim(localID);
|
||||
if (group != null)
|
||||
{
|
||||
LLVector3 oldPos = group.AbsolutePosition;
|
||||
// LLVector3 oldPos = group.AbsolutePosition;
|
||||
if (!m_parentScene.ExternalChecks.ExternalChecksCanObjectEntry(group.UUID,pos) && !group.RootPart.m_IsAttachment)
|
||||
{
|
||||
group.SendGroupTerseUpdate();
|
||||
|
@ -1122,7 +1122,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
if (group != null)
|
||||
{
|
||||
|
||||
LLVector3 oldPos = group.AbsolutePosition;
|
||||
// LLVector3 oldPos = group.AbsolutePosition;
|
||||
if (group.RootPart.m_IsAttachment)
|
||||
{
|
||||
group.UpdateGroupPosition(pos);
|
||||
|
@ -1467,7 +1467,8 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
{
|
||||
//m_log.DebugFormat("[SCENE]: Duplication of object {0} at offset {1} requested by agent {2}", originalPrim, offset, AgentID);
|
||||
|
||||
SceneObjectGroup dupe = DuplicateObject(originalPrim, offset, flags, AgentID, GroupID, Quaternion.Zero);
|
||||
// SceneObjectGroup dupe = DuplicateObject(originalPrim, offset, flags, AgentID, GroupID, Quaternion.Zero);
|
||||
DuplicateObject(originalPrim, offset, flags, AgentID, GroupID, Quaternion.Zero);
|
||||
}
|
||||
/// <summary>
|
||||
/// Duplicate the given object.
|
||||
|
|
|
@ -2098,7 +2098,8 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
{
|
||||
LLQuaternion worldRot = target2.GetWorldRotation();
|
||||
|
||||
SceneObjectGroup obj = m_innerScene.DuplicateObject(localID, pos, target.GetEffectiveObjectFlags(), AgentID, GroupID, new Quaternion(worldRot.W,worldRot.X,worldRot.Y,worldRot.Z));
|
||||
// SceneObjectGroup obj = m_innerScene.DuplicateObject(localID, pos, target.GetEffectiveObjectFlags(), AgentID, GroupID, new Quaternion(worldRot.W,worldRot.X,worldRot.Y,worldRot.Z));
|
||||
m_innerScene.DuplicateObject(localID, pos, target.GetEffectiveObjectFlags(), AgentID, GroupID, new Quaternion(worldRot.W,worldRot.X,worldRot.Y,worldRot.Z));
|
||||
//obj.Rotation = new Quaternion(worldRot.W, worldRot.X, worldRot.Y, worldRot.Z);
|
||||
//obj.UpdateGroupRotation(worldRot);
|
||||
}
|
||||
|
|
|
@ -266,8 +266,8 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
|
||||
public void RequestNeighbors(RegionInfo region)
|
||||
{
|
||||
List<SimpleRegionInfo> neighbours =
|
||||
m_commsProvider.GridService.RequestNeighbours(m_regionInfo.RegionLocX, m_regionInfo.RegionLocY);
|
||||
// List<SimpleRegionInfo> neighbours =
|
||||
m_commsProvider.GridService.RequestNeighbours(m_regionInfo.RegionLocX, m_regionInfo.RegionLocY);
|
||||
//IPEndPoint blah = new IPEndPoint();
|
||||
|
||||
//blah.Address = region.RemotingAddress;
|
||||
|
|
|
@ -823,7 +823,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
|
||||
public void AddFlag(LLObject.ObjectFlags flag)
|
||||
{
|
||||
LLObject.ObjectFlags prevflag = Flags;
|
||||
// LLObject.ObjectFlags prevflag = Flags;
|
||||
//uint objflags = Flags;
|
||||
if ((ObjectFlags & (uint) flag) == 0)
|
||||
{
|
||||
|
@ -1678,7 +1678,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
|
||||
public void PreloadSound(string sound)
|
||||
{
|
||||
LLUUID ownerID = OwnerID;
|
||||
// LLUUID ownerID = OwnerID;
|
||||
LLUUID objectID = UUID;
|
||||
LLUUID soundID = LLUUID.Zero;
|
||||
|
||||
|
@ -1708,7 +1708,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
|
||||
public void RemFlag(LLObject.ObjectFlags flag)
|
||||
{
|
||||
LLObject.ObjectFlags prevflag = Flags;
|
||||
// LLObject.ObjectFlags prevflag = Flags;
|
||||
if ((ObjectFlags & (uint) flag) != 0)
|
||||
{
|
||||
//Console.WriteLine("Removing flag: " + ((LLObject.ObjectFlags)flag).ToString());
|
||||
|
@ -2153,12 +2153,12 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
|
||||
public void SetScriptEvents(LLUUID scriptid, int events)
|
||||
{
|
||||
scriptEvents oldparts;
|
||||
// scriptEvents oldparts;
|
||||
lock (m_scriptEvents)
|
||||
{
|
||||
if (m_scriptEvents.ContainsKey(scriptid))
|
||||
{
|
||||
oldparts = m_scriptEvents[scriptid];
|
||||
// oldparts = m_scriptEvents[scriptid];
|
||||
|
||||
// remove values from aggregated script events
|
||||
m_scriptEvents[scriptid] = (scriptEvents) events;
|
||||
|
@ -2259,8 +2259,8 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
Vector3 vAbsolutePosition = new Vector3(AbsolutePosition.X, AbsolutePosition.Y, AbsolutePosition.Z);
|
||||
|
||||
Vector3 vScale = new Vector3(Scale.X, Scale.Y, Scale.Z);
|
||||
Quaternion qRotation =
|
||||
new Quaternion(RotationOffset.W, RotationOffset.X, RotationOffset.Y, RotationOffset.Z);
|
||||
// Quaternion qRotation =
|
||||
// new Quaternion(RotationOffset.W, RotationOffset.X, RotationOffset.Y, RotationOffset.Z);
|
||||
|
||||
|
||||
//Quaternion worldRotation = (qRotation*parentrot);
|
||||
|
@ -2366,7 +2366,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
// TODO: Change to take shape into account
|
||||
Vector3[] vertexes = new Vector3[8];
|
||||
|
||||
float[] distance = new float[6];
|
||||
// float[] distance = new float[6];
|
||||
Vector3[] FaceA = new Vector3[6]; // vertex A for Facei
|
||||
Vector3[] FaceB = new Vector3[6]; // vertex B for Facei
|
||||
Vector3[] FaceC = new Vector3[6]; // vertex C for Facei
|
||||
|
@ -2830,7 +2830,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
bool usePhysics = false;
|
||||
bool IsTemporary = false;
|
||||
bool IsPhantom = false;
|
||||
bool castsShadows = false;
|
||||
// bool castsShadows = false;
|
||||
bool wasUsingPhysics = ((ObjectFlags & (uint) LLObject.ObjectFlags.Physics) != 0);
|
||||
//bool IsLocked = false;
|
||||
int i = 0;
|
||||
|
@ -2843,7 +2843,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
//System.Console.WriteLine("U" + packet.ToBytes().Length.ToString());
|
||||
IsTemporary = (data[i++] != 0) ? true : false;
|
||||
IsPhantom = (data[i++] != 0) ? true : false;
|
||||
castsShadows = (data[i++] != 0) ? true : false;
|
||||
// castsShadows = (data[i++] != 0) ? true : false;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue