mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Formatting cleanup.
This commit is contained in:
@@ -391,7 +391,7 @@ namespace OpenSim
|
||||
scene.LoadPrimsFromStorage(regionInfo.originRegionID);
|
||||
|
||||
// TODO : Try setting resource for region xstats here on scene
|
||||
scene.CommsManager.HttpServer.AddStreamHandler( new Region.Framework.Scenes.RegionStatsHandler(regionInfo));
|
||||
scene.CommsManager.HttpServer.AddStreamHandler(new Region.Framework.Scenes.RegionStatsHandler(regionInfo));
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
@@ -9453,7 +9453,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
}
|
||||
|
||||
// in the end, we dereference this, so we have to check if it's null
|
||||
if (m_imageManager != null )
|
||||
if (m_imageManager != null)
|
||||
m_imageManager.ProcessImageQueue(10);
|
||||
PacketPool.Instance.ReturnPacket(Pack);
|
||||
}
|
||||
@@ -10164,7 +10164,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
mirplk.AgentData.AgentID = AgentId;
|
||||
mirplk.RequestData.ItemType = mapitemtype;
|
||||
mirplk.Data = new MapItemReplyPacket.DataBlock[replies.Length];
|
||||
for (int i = 0; i < replies.Length; i++ )
|
||||
for (int i = 0; i < replies.Length; i++)
|
||||
{
|
||||
MapItemReplyPacket.DataBlock mrdata = new MapItemReplyPacket.DataBlock();
|
||||
mrdata.X = replies[i].x;
|
||||
|
||||
@@ -133,7 +133,7 @@ namespace OpenSim.Region.Communications.Hypergrid
|
||||
{
|
||||
// Region doesn't exist here. Trying to link remote region
|
||||
|
||||
m_log.Info("[HGrid]: Linking remote region " + regionInfo.ExternalHostName + ":" + regionInfo.HttpPort );
|
||||
m_log.Info("[HGrid]: Linking remote region " + regionInfo.ExternalHostName + ":" + regionInfo.HttpPort);
|
||||
regionInfo.RegionID = LinkRegion(regionInfo); // UUID.Random();
|
||||
if (!regionInfo.RegionID.Equals(UUID.Zero))
|
||||
{
|
||||
|
||||
@@ -88,7 +88,7 @@ namespace OpenSim.Region.Communications.Local
|
||||
}
|
||||
else
|
||||
{
|
||||
m_log.WarnFormat( "[LOCAL INVENTORY SERVICE]: User {0} inventory not available", userID);
|
||||
m_log.WarnFormat("[LOCAL INVENTORY SERVICE]: User {0} inventory not available", userID);
|
||||
}
|
||||
|
||||
callback(folders, items);
|
||||
|
||||
@@ -435,7 +435,7 @@ namespace OpenSim.Region.Communications.OGS1
|
||||
// string externalUri = (string) responseData["sim_uri"];
|
||||
|
||||
//IPEndPoint neighbourInternalEndPoint = new IPEndPoint(IPAddress.Parse(internalIpStr), (int) port);
|
||||
regionInfo = RegionInfo.Create(regionID, regionName, regX, regY, externalHostName, httpPort, simPort, remotingPort, simURI );
|
||||
regionInfo = RegionInfo.Create(regionID, regionName, regX, regY, externalHostName, httpPort, simPort, remotingPort, simURI);
|
||||
|
||||
if (m_useRemoteRegionCache)
|
||||
{
|
||||
|
||||
@@ -231,7 +231,7 @@ namespace Flotsam.RegionModules.AssetCache
|
||||
|
||||
private void UpdateMemoryCache(string key, AssetBase asset)
|
||||
{
|
||||
if( m_MemoryCacheEnabled )
|
||||
if (m_MemoryCacheEnabled)
|
||||
{
|
||||
if (m_MemoryExpiration > TimeSpan.Zero)
|
||||
{
|
||||
@@ -405,7 +405,7 @@ namespace Flotsam.RegionModules.AssetCache
|
||||
File.Delete(filename);
|
||||
}
|
||||
|
||||
if( m_MemoryCacheEnabled )
|
||||
if (m_MemoryCacheEnabled)
|
||||
m_MemoryCache.Remove(id);
|
||||
}
|
||||
catch (Exception e)
|
||||
@@ -424,7 +424,7 @@ namespace Flotsam.RegionModules.AssetCache
|
||||
Directory.Delete(dir);
|
||||
}
|
||||
|
||||
if( m_MemoryCacheEnabled )
|
||||
if (m_MemoryCacheEnabled)
|
||||
m_MemoryCache.Clear();
|
||||
}
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
|
||||
{
|
||||
byte dialog = im.dialog;
|
||||
|
||||
if ( dialog != (byte)InstantMessageDialog.MessageFromAgent
|
||||
if (dialog != (byte)InstantMessageDialog.MessageFromAgent
|
||||
&& dialog != (byte)InstantMessageDialog.StartTyping
|
||||
&& dialog != (byte)InstantMessageDialog.StopTyping
|
||||
&& dialog != (byte)InstantMessageDialog.MessageFromObject)
|
||||
|
||||
@@ -219,7 +219,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
|
||||
else
|
||||
{
|
||||
if (m_TransferModule != null)
|
||||
m_TransferModule.SendInstantMessage(im, delegate(bool success) {} );
|
||||
m_TransferModule.SendInstantMessage(im, delegate(bool success) {});
|
||||
}
|
||||
}
|
||||
else if (im.dialog == (byte) InstantMessageDialog.InventoryAccepted)
|
||||
@@ -233,7 +233,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
|
||||
else
|
||||
{
|
||||
if (m_TransferModule != null)
|
||||
m_TransferModule.SendInstantMessage(im, delegate(bool success) {} );
|
||||
m_TransferModule.SendInstantMessage(im, delegate(bool success) {});
|
||||
}
|
||||
}
|
||||
else if (im.dialog == (byte) InstantMessageDialog.InventoryDeclined)
|
||||
@@ -300,7 +300,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
|
||||
else
|
||||
{
|
||||
if (m_TransferModule != null)
|
||||
m_TransferModule.SendInstantMessage(im, delegate(bool success) {} );
|
||||
m_TransferModule.SendInstantMessage(im, delegate(bool success) {});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -890,8 +890,8 @@ namespace OpenSim.Region.CoreModules.InterGrid
|
||||
|
||||
responseMap["sim_host"] = OSD.FromString(rezRespSim_host);
|
||||
responseMap["sim_port"] = OSD.FromInteger(rrPort);
|
||||
responseMap["region_x"] = OSD.FromInteger(rrX );
|
||||
responseMap["region_y"] = OSD.FromInteger(rrY );
|
||||
responseMap["region_x"] = OSD.FromInteger(rrX);
|
||||
responseMap["region_y"] = OSD.FromInteger(rrY);
|
||||
responseMap["region_id"] = OSD.FromUUID(rrRID);
|
||||
responseMap["sim_access"] = OSD.FromString(rrAccess);
|
||||
|
||||
|
||||
@@ -511,7 +511,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
||||
if (z_sort.ContainsKey(sortedlocalIds[s]))
|
||||
{
|
||||
DrawStruct rectDrawStruct = z_sort[sortedlocalIds[s]];
|
||||
for (int r = 0; r < rectDrawStruct.trns.Length; r++ )
|
||||
for (int r = 0; r < rectDrawStruct.trns.Length; r++)
|
||||
{
|
||||
g.FillPolygon(rectDrawStruct.brush,rectDrawStruct.trns[r].pts);
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
//private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
public RegionStatsHandler(OpenSim.Framework.RegionInfo region_info )
|
||||
public RegionStatsHandler(OpenSim.Framework.RegionInfo region_info)
|
||||
{
|
||||
regionInfo = region_info;
|
||||
osRXStatsURI = Util.SHA1Hash(regionInfo.regionSecret);
|
||||
@@ -95,7 +95,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
private string Report()
|
||||
{
|
||||
OSDMap args = new OSDMap(30);
|
||||
//int time = Util.ToUnixTime( DateTime.Now );
|
||||
//int time = Util.ToUnixTime(DateTime.Now);
|
||||
args["OSStatsURI"] = OSD.FromString("http://" + regionInfo.ExternalHostName + ":" + regionInfo.HttpPort + "/" + osXStatsURI + "/");
|
||||
args["TimeZoneName"] = OSD.FromString(localZone);
|
||||
args["TimeZoneOffs"] = OSD.FromReal(utcOffset.TotalHours);
|
||||
|
||||
@@ -645,7 +645,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
public IJ2KDecoder j2kdecode;
|
||||
private System.Threading.Thread thisthread;
|
||||
|
||||
public void run( object o)
|
||||
public void run(object o)
|
||||
{
|
||||
for (int i=0;i<arrassets.Length;i++)
|
||||
{
|
||||
|
||||
@@ -3325,7 +3325,7 @@ if (m_shape != null) {
|
||||
bool wasPhantom = ((ObjectFlags & (uint)PrimFlags.Phantom) != 0);
|
||||
bool wasVD = VolumeDetectActive;
|
||||
|
||||
if ((UsePhysics == wasUsingPhysics) && (wasTemporary == IsTemporary) && (wasPhantom == IsPhantom) && (IsVD==wasVD) )
|
||||
if ((UsePhysics == wasUsingPhysics) && (wasTemporary == IsTemporary) && (wasPhantom == IsPhantom) && (IsVD==wasVD))
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -3477,7 +3477,7 @@ if (m_shape != null) {
|
||||
}
|
||||
else
|
||||
{ // Remove VolumeDetect in any case. Note, it's safe to call SetVolumeDetect as often as you like
|
||||
// (mumbles, well, at least if you have infinte CPU powers :-) )
|
||||
// (mumbles, well, at least if you have infinte CPU powers :-))
|
||||
if (this.PhysActor != null)
|
||||
{
|
||||
PhysActor.SetVolumeDetect(0);
|
||||
|
||||
@@ -2032,7 +2032,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
UUID[] animIDs;
|
||||
int[] sequenceNums;
|
||||
UUID[] objectIDs;
|
||||
m_animations.GetArrays( out animIDs, out sequenceNums, out objectIDs);
|
||||
m_animations.GetArrays(out animIDs, out sequenceNums, out objectIDs);
|
||||
return animIDs;
|
||||
}
|
||||
|
||||
|
||||
@@ -68,13 +68,13 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
entman.Add(sog);
|
||||
|
||||
found = (SceneObjectGroup)entman[obj1];
|
||||
Assert.That(found.UUID ,Is.EqualTo(obj1) );
|
||||
Assert.That(found.UUID ,Is.EqualTo(obj1));
|
||||
found = (SceneObjectGroup)entman[li1];
|
||||
Assert.That(found.UUID ,Is.EqualTo(obj1) );
|
||||
Assert.That(found.UUID ,Is.EqualTo(obj1));
|
||||
found = (SceneObjectGroup)entman[obj2];
|
||||
Assert.That(found.UUID ,Is.EqualTo(obj2) );
|
||||
Assert.That(found.UUID ,Is.EqualTo(obj2));
|
||||
found = (SceneObjectGroup)entman[li2];
|
||||
Assert.That(found.UUID ,Is.EqualTo(obj2) );
|
||||
Assert.That(found.UUID ,Is.EqualTo(obj2));
|
||||
|
||||
entman.Remove(obj1);
|
||||
entman.Remove(li2);
|
||||
|
||||
@@ -404,7 +404,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
|
||||
private bool IsAConnectionMatchFor(ChannelState cs)
|
||||
{
|
||||
return (
|
||||
return (
|
||||
Server == cs.Server &&
|
||||
IrcChannel == cs.IrcChannel &&
|
||||
Port == cs.Port &&
|
||||
@@ -419,7 +419,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
|
||||
private bool IsAPerfectMatchFor(ChannelState cs)
|
||||
{
|
||||
return ( IsAConnectionMatchFor(cs) &&
|
||||
return (IsAConnectionMatchFor(cs) &&
|
||||
RelayChannelOut == cs.RelayChannelOut &&
|
||||
PrivateMessageFormat == cs.PrivateMessageFormat &&
|
||||
NoticeMessageFormat == cs.NoticeMessageFormat &&
|
||||
@@ -598,7 +598,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
{
|
||||
foreach (ChannelState cs in IRCBridgeModule.m_channels)
|
||||
{
|
||||
if ( p_irc == cs.irc)
|
||||
if (p_irc == cs.irc)
|
||||
{
|
||||
|
||||
// This non-IRC differentiator moved to here
|
||||
|
||||
@@ -147,7 +147,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
|
||||
response["content_type"] = "text/xml";
|
||||
response["keepalive"] = false;
|
||||
response["int_response_code"] = 200;
|
||||
response["str_response_string"] = String.Format(
|
||||
response["str_response_string"] = String.Format(
|
||||
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n" +
|
||||
"<document type=\"freeswitch/xml\">\r\n" +
|
||||
"<section name=\"directory\" description=\"User Directory\">\r\n" +
|
||||
@@ -184,7 +184,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
|
||||
response["content_type"] = "text/xml";
|
||||
response["keepalive"] = false;
|
||||
response["int_response_code"] = 200;
|
||||
response["str_response_string"] = String.Format(
|
||||
response["str_response_string"] = String.Format(
|
||||
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n" +
|
||||
"<document type=\"freeswitch/xml\">\r\n" +
|
||||
"<section name=\"directory\" description=\"User Directory\">\r\n" +
|
||||
@@ -230,7 +230,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
|
||||
response["content_type"] = "text/xml";
|
||||
response["keepalive"] = false;
|
||||
response["int_response_code"] = 200;
|
||||
response["str_response_string"] = String.Format(
|
||||
response["str_response_string"] = String.Format(
|
||||
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n" +
|
||||
"<document type=\"freeswitch/xml\">\r\n" +
|
||||
"<section name=\"directory\" description=\"User Directory\">\r\n" +
|
||||
@@ -263,7 +263,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
|
||||
response["content_type"] = "text/xml";
|
||||
response["keepalive"] = false;
|
||||
response["int_response_code"] = 200;
|
||||
response["str_response_string"] = String.Format(
|
||||
response["str_response_string"] = String.Format(
|
||||
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n" +
|
||||
"<document type=\"freeswitch/xml\">\r\n" +
|
||||
"<section name=\"directory\" description=\"User Directory\">\r\n" +
|
||||
@@ -317,7 +317,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
|
||||
// response["content_type"] = "text/xml";
|
||||
// response["keepalive"] = false;
|
||||
// response["int_response_code"] = 200;
|
||||
// response["str_response_string"] = String.Format(
|
||||
// response["str_response_string"] = String.Format(
|
||||
// "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n" +
|
||||
// "<document type=\"freeswitch/xml\">\r\n" +
|
||||
// "<section name=\"directory\" description=\"User Directory\">\r\n" +
|
||||
|
||||
@@ -556,7 +556,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
|
||||
response["content_type"] = "text/xml";
|
||||
response["keepalive"] = false;
|
||||
|
||||
response["str_response_string"] = String.Format(
|
||||
response["str_response_string"] = String.Format(
|
||||
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n" +
|
||||
"<VCConfiguration>\r\n"+
|
||||
"<DefaultRealm>{0}</DefaultRealm>\r\n" +
|
||||
|
||||
@@ -1234,7 +1234,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||
// UDP version doesn't seem to behave nicely. But we're going to send it out here
|
||||
// with an empty group membership to hopefully remove groups being displayed due
|
||||
// to the core Groups Stub
|
||||
remoteClient.SendGroupMembership( new GroupMembershipData[0] );
|
||||
remoteClient.SendGroupMembership(new GroupMembershipData[0]);
|
||||
|
||||
GroupMembershipData[] membershipData = m_groupData.GetAgentGroupMemberships(GetClientGroupRequestID(remoteClient), dataForAgentID).ToArray();
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ namespace OpenSim.Region.OptionalModules.ContentManagement
|
||||
{
|
||||
m_log.Debug("[CONTENT MANAG] saving " + scene.RegionInfo.RegionName + " with log message: " + logMessage + " length of message: " + logMessage.Length);
|
||||
m_database.SaveRegion(scene.RegionInfo.RegionID, scene.RegionInfo.RegionName, logMessage);
|
||||
m_log.Debug("[CONTENT MANAG] the region name we are dealing with heeeeeeeere: " + scene.RegionInfo.RegionName );
|
||||
m_log.Debug("[CONTENT MANAG] the region name we are dealing with heeeeeeeere: " + scene.RegionInfo.RegionName);
|
||||
}
|
||||
|
||||
public void DeleteAllMetaObjects()
|
||||
|
||||
@@ -123,7 +123,7 @@ namespace OpenSim.Region.OptionalModules.ContentManagement
|
||||
{
|
||||
String filename = m_repodir + Slash.DirectorySeparatorChar + regionid +
|
||||
Slash.DirectorySeparatorChar + "heightmap.r32";
|
||||
FileStream fs = new FileStream( filename, FileMode.Open);
|
||||
FileStream fs = new FileStream(filename, FileMode.Open);
|
||||
StreamReader sr = new StreamReader(fs);
|
||||
String result = sr.ReadToEnd();
|
||||
sr.Close();
|
||||
@@ -135,7 +135,7 @@ namespace OpenSim.Region.OptionalModules.ContentManagement
|
||||
{
|
||||
String filename = m_repodir + Slash.DirectorySeparatorChar + regionid +
|
||||
Slash.DirectorySeparatorChar + "heightmap.r32";
|
||||
FileStream fs = new FileStream( filename, FileMode.Open);
|
||||
FileStream fs = new FileStream(filename, FileMode.Open);
|
||||
StreamReader sr = new StreamReader(fs);
|
||||
String result = sr.ReadToEnd();
|
||||
sr.Close();
|
||||
@@ -232,7 +232,7 @@ namespace OpenSim.Region.OptionalModules.ContentManagement
|
||||
try
|
||||
{
|
||||
logLocation = revisionDir + Slash.DirectorySeparatorChar + "log";
|
||||
fs = new FileStream( logLocation, FileMode.Open);
|
||||
fs = new FileStream(logLocation, FileMode.Open);
|
||||
sr = new StreamReader(fs);
|
||||
logMessage = sr.ReadToEnd();
|
||||
sr.Close();
|
||||
|
||||
@@ -170,7 +170,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
||||
SceneObjectPart sop = GetSOP();
|
||||
IObjectMaterial[] rets = new IObjectMaterial[getNumberOfSides(sop)];
|
||||
|
||||
for (int i = 0; i < rets.Length;i++ )
|
||||
for (int i = 0; i < rets.Length; i++)
|
||||
{
|
||||
rets[i] = new SOPObjectMaterial(i, sop);
|
||||
}
|
||||
|
||||
@@ -459,7 +459,7 @@ namespace OpenSim.Region.Physics.BulletDotNETPlugin
|
||||
{
|
||||
lock (m_prims)
|
||||
{
|
||||
foreach ( BulletDotNETPrim prim in m_prims)
|
||||
foreach (BulletDotNETPrim prim in m_prims)
|
||||
{
|
||||
if (prim.Body != null)
|
||||
m_world.removeRigidBody(prim.Body);
|
||||
|
||||
@@ -429,8 +429,7 @@ namespace OpenSim.Region.Physics.Meshing
|
||||
{
|
||||
#if SPAM
|
||||
m_log.Debug("Meshmerizer: prim " + primName + " has a size of " + size.ToString() + " which is below threshold of " +
|
||||
|
||||
minSizeForComplexMesh.ToString() + " - creating simple bounding box" );
|
||||
minSizeForComplexMesh.ToString() + " - creating simple bounding box");
|
||||
#endif
|
||||
mesh = CreateBoundingBoxMesh(mesh);
|
||||
mesh.DumpRaw(baseDir, primName, "Z extruded");
|
||||
@@ -443,6 +442,5 @@ minSizeForComplexMesh.ToString() + " - creating simple bounding box" );
|
||||
|
||||
return mesh;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1116,7 +1116,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
m_log.Warn("[PHYSICS]: re-creating the following avatar ODE data, even though it already exists - "
|
||||
+ (Shell!=IntPtr.Zero ? "Shell ":"")
|
||||
+ (Body!=IntPtr.Zero ? "Body ":"")
|
||||
+ (Amotor!=IntPtr.Zero ? "Amotor ":"") );
|
||||
+ (Amotor!=IntPtr.Zero ? "Amotor ":""));
|
||||
}
|
||||
AvatarGeomAndBodyCreation(_position.X, _position.Y, _position.Z, m_tensor);
|
||||
|
||||
@@ -1182,7 +1182,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
m_log.Warn("[PHYSICS]: trying to change capsule size, but the following ODE data is missing - "
|
||||
+ (Shell==IntPtr.Zero ? "Shell ":"")
|
||||
+ (Body==IntPtr.Zero ? "Body ":"")
|
||||
+ (Amotor==IntPtr.Zero ? "Amotor ":"") );
|
||||
+ (Amotor==IntPtr.Zero ? "Amotor ":""));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2593,7 +2593,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
if ((Math.Abs(m_lastposition.X - l_position.X) < 0.02)
|
||||
&& (Math.Abs(m_lastposition.Y - l_position.Y) < 0.02)
|
||||
&& (Math.Abs(m_lastposition.Z - l_position.Z) < 0.02)
|
||||
&& (1.0 - Math.Abs(Quaternion.Dot(m_lastorientation, l_orientation)) < 0.01 ))
|
||||
&& (1.0 - Math.Abs(Quaternion.Dot(m_lastorientation, l_orientation)) < 0.01))
|
||||
{
|
||||
_zeroFlag = true;
|
||||
m_throttleUpdates = false;
|
||||
@@ -2981,7 +2981,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
Matrix4 transposeMatrix = new Matrix4();
|
||||
for (int i = 0; i < 4; i++)
|
||||
for (int j = 0; j < 4; j++)
|
||||
Matrix4SetValue( ref transposeMatrix, i, j, pMat[j, i]);
|
||||
Matrix4SetValue(ref transposeMatrix, i, j, pMat[j, i]);
|
||||
return transposeMatrix;
|
||||
}
|
||||
|
||||
|
||||
@@ -234,7 +234,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
SetDefaultsForType(pType);
|
||||
Reset();
|
||||
}
|
||||
else if (m_type != Vehicle.TYPE_NONE && pType != Vehicle.TYPE_NONE )
|
||||
else if (m_type != Vehicle.TYPE_NONE && pType != Vehicle.TYPE_NONE)
|
||||
{
|
||||
// Set properties
|
||||
SetDefaultsForType(pType);
|
||||
@@ -408,7 +408,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
// m_bankingMix = 0.8f;
|
||||
// m_bankingTimescale = 1;
|
||||
// m_referenceFrame = Quaternion.Identity;
|
||||
m_flags &= ~( VehicleFlag.HOVER_TERRAIN_ONLY | VehicleFlag.LIMIT_ROLL_ONLY | VehicleFlag.HOVER_GLOBAL_HEIGHT);
|
||||
m_flags &= ~(VehicleFlag.HOVER_TERRAIN_ONLY | VehicleFlag.LIMIT_ROLL_ONLY | VehicleFlag.HOVER_GLOBAL_HEIGHT);
|
||||
m_flags |= (VehicleFlag.NO_DEFLECTION_UP | VehicleFlag.HOVER_WATER_ONLY | VehicleFlag.HOVER_UP_ONLY |
|
||||
VehicleFlag.LIMIT_MOTOR_UP);
|
||||
break;
|
||||
|
||||
@@ -3261,7 +3261,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
d.GeomHeightfieldDataBuildSingle(HeightmapData, _heightmap, 0, heightmapWidth, heightmapHeight,
|
||||
(int) heightmapWidthSamples, (int) heightmapHeightSamples, scale,
|
||||
offset, thickness, wrap);
|
||||
d.GeomHeightfieldDataSetBounds(HeightmapData, hfmin - 1 , hfmax + 1 );
|
||||
d.GeomHeightfieldDataSetBounds(HeightmapData, hfmin - 1 , hfmax + 1);
|
||||
LandGeom = d.CreateHeightfield(space, HeightmapData, 1);
|
||||
if (LandGeom != IntPtr.Zero)
|
||||
{
|
||||
|
||||
@@ -2856,7 +2856,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
if (m_TransferModule != null)
|
||||
{
|
||||
m_TransferModule.SendInstantMessage(msg, delegate(bool success) {} );
|
||||
m_TransferModule.SendInstantMessage(msg, delegate(bool success) {});
|
||||
}
|
||||
ScriptSleep(2000);
|
||||
}
|
||||
@@ -3668,7 +3668,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
bucket);
|
||||
|
||||
if (m_TransferModule != null)
|
||||
m_TransferModule.SendInstantMessage(msg, delegate(bool success) {} );
|
||||
m_TransferModule.SendInstantMessage(msg, delegate(bool success) {});
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -5968,7 +5968,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
bucket);
|
||||
|
||||
if (m_TransferModule != null)
|
||||
m_TransferModule.SendInstantMessage(msg, delegate(bool success) {} );
|
||||
m_TransferModule.SendInstantMessage(msg, delegate(bool success) {});
|
||||
}
|
||||
|
||||
public void llSetVehicleType(int type)
|
||||
@@ -6008,7 +6008,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
if (!m_host.ParentGroup.IsDeleted)
|
||||
{
|
||||
m_host.ParentGroup.RootPart.SetVehicleVectorParam(param,
|
||||
new PhysicsVector((float)vec.x, (float)vec.y, (float)vec.z) );
|
||||
new PhysicsVector((float)vec.x, (float)vec.y, (float)vec.z));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7039,7 +7039,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
return (double)Math.Log(val);
|
||||
}
|
||||
|
||||
public LSL_List llGetAnimationList( string id )
|
||||
public LSL_List llGetAnimationList(string id)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
|
||||
@@ -586,7 +586,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
// Check for hostname , attempt to make a hglink
|
||||
// and convert the regionName to the target region
|
||||
if ( regionName.Contains(".") && regionName.Contains(":"))
|
||||
if (regionName.Contains(".") && regionName.Contains(":"))
|
||||
{
|
||||
// Try to link the region
|
||||
RegionInfo regInfo = HGHyperlink.TryLinkRegion(World,
|
||||
|
||||
@@ -206,7 +206,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
// DO NOT THROW JUST THE INNER EXCEPTION!
|
||||
// FriendlyErrors depends on getting the whole exception!
|
||||
//
|
||||
if ( !(tie.InnerException is EventAbortException) )
|
||||
if (!(tie.InnerException is EventAbortException))
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
@@ -1407,7 +1407,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
|
||||
throw new PrologException(Atom.a("instantiation_error"),
|
||||
"Arg 1 Char and arg 2 Code are both unbound variables");
|
||||
|
||||
return YP.unify(Char, Atom.a(new String(new char[] {(char)codeInt} )));
|
||||
return YP.unify(Char, Atom.a(new String(new char[] {(char)codeInt})));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2343,7 +2343,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
|
||||
string results = "";
|
||||
for (Match m = Regex.Match(inData,inPattern); m.Success; m=m.NextMatch())
|
||||
{
|
||||
//m_log.Debug( m );
|
||||
//m_log.Debug(m);
|
||||
results += presep+ m + postsep;
|
||||
}
|
||||
return results;
|
||||
|
||||
@@ -676,20 +676,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
|
||||
|
||||
// It's possible that we don't have an assignment, in which case
|
||||
// the child will be null and we only print the semicolon.
|
||||
// for ( x = 0 ; x < 10 ; x++ )
|
||||
// ^^^^^^^
|
||||
// for (x = 0; x < 10; x++)
|
||||
// ^^^^^
|
||||
ForLoopStatement s = (ForLoopStatement) fl.kids.Pop();
|
||||
if (null != s)
|
||||
{
|
||||
retstr += GenerateForLoopStatement(s);
|
||||
}
|
||||
retstr += Generate("; ");
|
||||
// for ( x = 0 ; x < 10 ; x++ )
|
||||
// ^^^^^^^^
|
||||
// for (x = 0; x < 10; x++)
|
||||
// ^^^^^^
|
||||
retstr += GenerateNode((SYMBOL) fl.kids.Pop());
|
||||
retstr += Generate("; ");
|
||||
// for ( x = 0 ; x < 10 ; x++ )
|
||||
// ^^^^^
|
||||
// for (x = 0; x < 10; x++)
|
||||
// ^^^
|
||||
retstr += GenerateForLoopStatement((ForLoopStatement) fl.kids.Pop());
|
||||
retstr += GenerateLine(")");
|
||||
|
||||
|
||||
@@ -573,7 +573,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
|
||||
display--;
|
||||
|
||||
string severity = "Error";
|
||||
if ( CompErr.IsWarning )
|
||||
if (CompErr.IsWarning)
|
||||
{
|
||||
severity = "Warning";
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
|
||||
// It's possible that a child is null, for instance when the
|
||||
// assignment part in a for-loop is left out, ie:
|
||||
//
|
||||
// for ( ; i < 10; i++)
|
||||
// for (; i < 10; i++)
|
||||
// {
|
||||
// ...
|
||||
// }
|
||||
|
||||
@@ -447,7 +447,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||
// down-cast from Object to the correct type.
|
||||
// Note: no checks for item index being valid are performed
|
||||
|
||||
public LSL_Types.LSLFloat GetLSLFloatItem( int itemIndex )
|
||||
public LSL_Types.LSLFloat GetLSLFloatItem(int itemIndex)
|
||||
{
|
||||
if (m_data[itemIndex] is LSL_Types.LSLInteger)
|
||||
{
|
||||
|
||||
@@ -43,6 +43,7 @@ namespace OpenSim.Region.UserStatistics
|
||||
}
|
||||
o.Append(">\n\t");
|
||||
}
|
||||
|
||||
public static void TR_C(ref StringBuilder o)
|
||||
{
|
||||
o.Append("</tr>\n");
|
||||
@@ -52,6 +53,7 @@ namespace OpenSim.Region.UserStatistics
|
||||
{
|
||||
TD_O(ref o, pclass, 0, 0);
|
||||
}
|
||||
|
||||
public static void TD_O(ref StringBuilder o, string pclass, int rowspan, int colspan)
|
||||
{
|
||||
o.Append("<td");
|
||||
@@ -73,10 +75,12 @@ namespace OpenSim.Region.UserStatistics
|
||||
}
|
||||
o.Append(">");
|
||||
}
|
||||
|
||||
public static void TD_C(ref StringBuilder o)
|
||||
{
|
||||
o.Append("</td>");
|
||||
}
|
||||
|
||||
public static void TABLE_O(ref StringBuilder o, string pclass)
|
||||
{
|
||||
o.Append("<table");
|
||||
@@ -86,6 +90,7 @@ namespace OpenSim.Region.UserStatistics
|
||||
}
|
||||
o.Append(">\n\t");
|
||||
}
|
||||
|
||||
public static void TABLE_C(ref StringBuilder o)
|
||||
{
|
||||
o.Append("</table>\n");
|
||||
@@ -208,24 +213,22 @@ namespace OpenSim.Region.UserStatistics
|
||||
});
|
||||
// ]]>
|
||||
</script>");
|
||||
|
||||
}
|
||||
|
||||
public static void HtmlHeaders_O ( ref StringBuilder o)
|
||||
public static void HtmlHeaders_O(ref StringBuilder o)
|
||||
{
|
||||
o.Append("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n");
|
||||
o.Append("<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"nl\">");
|
||||
o.Append("<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />");
|
||||
|
||||
|
||||
}
|
||||
public static void HtmlHeaders_C ( ref StringBuilder o)
|
||||
|
||||
public static void HtmlHeaders_C(ref StringBuilder o)
|
||||
{
|
||||
o.Append("</HEAD>");
|
||||
o.Append("<BODY>");
|
||||
}
|
||||
|
||||
public static void AddReportLinks( ref StringBuilder o, Dictionary<string, IStatsController> reports, string pClass)
|
||||
public static void AddReportLinks(ref StringBuilder o, Dictionary<string, IStatsController> reports, string pClass)
|
||||
{
|
||||
int repcount = 0;
|
||||
foreach (string str in reports.Keys)
|
||||
@@ -242,7 +245,8 @@ namespace OpenSim.Region.UserStatistics
|
||||
}
|
||||
}
|
||||
}
|
||||
public static void A( ref StringBuilder o, string linktext, string linkhref, string pClass)
|
||||
|
||||
public static void A(ref StringBuilder o, string linktext, string linkhref, string pClass)
|
||||
{
|
||||
o.Append("<A");
|
||||
if (pClass.Length > 0)
|
||||
@@ -254,7 +258,6 @@ namespace OpenSim.Region.UserStatistics
|
||||
o.Append("\">");
|
||||
o.Append(linktext);
|
||||
o.Append("</A>");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace OpenSim.Region.UserStatistics
|
||||
string formatopen = "";
|
||||
string formatclose = "";
|
||||
|
||||
for (int i = 0; i < result.Length;i++ )
|
||||
for (int i = 0; i < result.Length; i++)
|
||||
{
|
||||
if (result[i].Length >= 30)
|
||||
{
|
||||
|
||||
@@ -398,7 +398,7 @@ namespace OpenSim.Region.UserStatistics
|
||||
|
||||
}
|
||||
|
||||
public string readLogLines( int amount)
|
||||
public string readLogLines(int amount)
|
||||
{
|
||||
Encoding encoding = Encoding.ASCII;
|
||||
int sizeOfChar = encoding.GetByteCount("\n");
|
||||
|
||||
Reference in New Issue
Block a user