diff options
More refactoring.
Diffstat (limited to 'OpenSim.RegionServer/ClientView.ProcessPackets.cs')
-rw-r--r-- | OpenSim.RegionServer/ClientView.ProcessPackets.cs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/OpenSim.RegionServer/ClientView.ProcessPackets.cs b/OpenSim.RegionServer/ClientView.ProcessPackets.cs index 16f418d..708c143 100644 --- a/OpenSim.RegionServer/ClientView.ProcessPackets.cs +++ b/OpenSim.RegionServer/ClientView.ProcessPackets.cs | |||
@@ -38,6 +38,7 @@ namespace OpenSim | |||
38 | public event GenericCall2 OnCompleteMovementToRegion; | 38 | public event GenericCall2 OnCompleteMovementToRegion; |
39 | public event GenericCall3 OnAgentUpdate; | 39 | public event GenericCall3 OnAgentUpdate; |
40 | public event StartAnim OnStartAnim; | 40 | public event StartAnim OnStartAnim; |
41 | public event GenericCall OnRequestAvatarsData; | ||
41 | 42 | ||
42 | protected override void ProcessInPacket(Packet Pack) | 43 | protected override void ProcessInPacket(Packet Pack) |
43 | { | 44 | { |
@@ -106,16 +107,7 @@ namespace OpenSim | |||
106 | break; | 107 | break; |
107 | case PacketType.AgentWearablesRequest: | 108 | case PacketType.AgentWearablesRequest: |
108 | OnRequestWearables(this); | 109 | OnRequestWearables(this); |
109 | //need to move the follow to a event system | 110 | OnRequestAvatarsData(this); |
110 | foreach (ClientView client in m_clientThreads.Values) | ||
111 | { | ||
112 | if (client.AgentID != this.AgentID) | ||
113 | { | ||
114 | ObjectUpdatePacket objupdate = client.ClientAvatar.CreateUpdatePacket(); | ||
115 | this.OutPacket(objupdate); | ||
116 | client.ClientAvatar.SendAppearanceToOtherAgent(this.ClientAvatar); | ||
117 | } | ||
118 | } | ||
119 | break; | 111 | break; |
120 | case PacketType.AgentSetAppearance: | 112 | case PacketType.AgentSetAppearance: |
121 | AgentSetAppearancePacket appear = (AgentSetAppearancePacket)Pack; | 113 | AgentSetAppearancePacket appear = (AgentSetAppearancePacket)Pack; |