very useless changes

This commit is contained in:
UbitUmarov
2025-06-25 02:22:28 +01:00
parent f1d84b7866
commit 0d71b6d871
78 changed files with 123 additions and 223 deletions

View File

@@ -168,6 +168,5 @@ namespace OpenSim.Region.ClientStack.Linden
{
_ = new BunchOfCaps(m_Scene, agentID, caps, ConfigOptions);
}
}
}

View File

@@ -98,7 +98,6 @@ namespace OpenSim.Region.ClientStack.Linden
public float PhysicalPrimScaleMax = 10f;
public int ObjectLinkedPartsMax = 512;
public ModelCost(Scene scene)
{
PrimScaleMin = scene.m_minNonphys;
@@ -152,7 +151,7 @@ namespace OpenSim.Region.ClientStack.Linden
resources.instance_list == null ||
resources.instance_list.Array.Count == 0)
{
error = "Missing model information.";
error = "missing model information.";
return false;
}
@@ -216,7 +215,7 @@ namespace OpenSim.Region.ClientStack.Linden
{
if (avatarSkeleton)
{
error = "Model can only contain a avatar skeleton";
error = "model can only contain a avatar skeleton";
return false;
}
avatarSkeleton = true;

View File

@@ -184,6 +184,7 @@ namespace OpenSim.Region.ClientStack.Linden
if (m_ExportSupported)
extrasMap["ExportSupported"] = true;
m_features["OpenSimExtras"] = extrasMap;
}
}
@@ -434,7 +435,7 @@ namespace OpenSim.Region.ClientStack.Linden
while ((s = sr.ReadLine()) is not null)
{
s = s.Trim(trimc);
if (String.IsNullOrEmpty(s) || s.StartsWith("<!--"))
if (string.IsNullOrEmpty(s) || s.StartsWith("<!--"))
continue;
sb.Append(s);
}

View File

@@ -414,7 +414,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
public int viewHeight { get; set; } = 480;
public int viewWidth { get; set; } = 640;
public UUID AgentId { get { return m_agentId; } }
public UUID ScopeId { get { return m_scopeId; } }
public ISceneAgent SceneAgent { get; set; }
@@ -876,7 +875,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
0xff, 0xff, 0, 1, 148 // ID 148 (low frequency bigendian) zero encoded
};
public void SendRegionHandshake()
{
GetViewerCaps(); // make sure this is up to date
@@ -3196,8 +3194,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(viewertime, ThrottleOutPacketType.Task);
}
public void SendViewerEffect(ViewerEffectPacket.EffectBlock[] effectBlocks)
{
ViewerEffectPacket packet = (ViewerEffectPacket)PacketPool.Instance.GetPacket(PacketType.ViewerEffect);
@@ -3411,7 +3407,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
*/
}
public void SendPartPhysicsProprieties(ISceneEntity entity)
{
IEventQueue eq = Scene.RequestModuleInterface<IEventQueue>();
@@ -8057,7 +8052,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
pathScaleY = 150;
}
// first is primFlags
zc.AddUInt((uint)primflags);
@@ -9317,7 +9311,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
avSetStartLocationRequestPacket.StartLocationData.LocationPos.Y = avatar.AbsolutePosition.Y;
}
}
}
c.OnSetStartLocationRequest?.Invoke(c, 0, avSetStartLocationRequestPacket.StartLocationData.LocationPos,
avSetStartLocationRequestPacket.StartLocationData.LocationLookAt,
@@ -9562,7 +9555,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
bool IsPhantom = (data[48] != 0) ? true : false;
handlerUpdatePrimFlags(flags.AgentData.ObjectLocalID, UsePhysics, IsTemporary, IsPhantom, this);
*/
bool UsePhysics = flags.AgentData.UsePhysics;
bool UsePhysics = flags.AgentData.UsePhysics;
bool IsPhantom = flags.AgentData.IsPhantom;
bool IsTemporary = flags.AgentData.IsTemporary;
ObjectFlagUpdatePacket.ExtraPhysicsBlock[] blocks = flags.ExtraPhysics;
@@ -11202,7 +11195,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
private static void HandleGetScriptRunning(LLClientView c, Packet Pack)
{
GetScriptRunningPacket scriptRunning = (GetScriptRunningPacket)Pack;
c.OnGetScriptRunning?.Invoke(c, scriptRunning.Script.ObjectID, scriptRunning.Script.ItemID);
}

View File

@@ -82,7 +82,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
public CancellationTokenSource InboundCancellationSource = new();
/// <summary>Returns true if the server is currently sending outbound packets, otherwise false</summary>
/// <remarks>If IsRunningOut = false, then any request to send a packet is simply dropped.</remarks>
internal bool m_IsRunningOutbound;
@@ -200,7 +199,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
const int SIO_UDP_CONNRESET = -1744830452;
m_udpSocket = new Socket( AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
try