|
@@ -6651,6 +6651,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|
}
|
|
}
|
|
#endregion
|
|
#endregion
|
|
|
|
|
|
|
|
+ if (SceneAgent.IsChildAgent)
|
|
|
|
+ {
|
|
|
|
+ SendCantSitBecauseChildAgentResponse();
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+
|
|
AgentRequestSit handlerAgentRequestSit = OnAgentRequestSit;
|
|
AgentRequestSit handlerAgentRequestSit = OnAgentRequestSit;
|
|
|
|
|
|
if (handlerAgentRequestSit != null)
|
|
if (handlerAgentRequestSit != null)
|
|
@@ -6675,6 +6681,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|
}
|
|
}
|
|
#endregion
|
|
#endregion
|
|
|
|
|
|
|
|
+ if (SceneAgent.IsChildAgent)
|
|
|
|
+ {
|
|
|
|
+ SendCantSitBecauseChildAgentResponse();
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+
|
|
AgentSit handlerAgentSit = OnAgentSit;
|
|
AgentSit handlerAgentSit = OnAgentSit;
|
|
if (handlerAgentSit != null)
|
|
if (handlerAgentSit != null)
|
|
{
|
|
{
|
|
@@ -6684,6 +6696,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// Used when a child agent gets a sit response which should not be fulfilled.
|
|
|
|
+ /// </summary>
|
|
|
|
+ private void SendCantSitBecauseChildAgentResponse()
|
|
|
|
+ {
|
|
|
|
+ SendAlertMessage("Try moving closer. Can't sit on object because it is not in the same region as you.");
|
|
|
|
+ }
|
|
|
|
+
|
|
private bool HandleSoundTrigger(IClientAPI sender, Packet Pack)
|
|
private bool HandleSoundTrigger(IClientAPI sender, Packet Pack)
|
|
{
|
|
{
|
|
SoundTriggerPacket soundTriggerPacket = (SoundTriggerPacket)Pack;
|
|
SoundTriggerPacket soundTriggerPacket = (SoundTriggerPacket)Pack;
|