diff options
author | gareth | 2007-03-01 02:02:01 +0000 |
---|---|---|
committer | gareth | 2007-03-01 02:02:01 +0000 |
commit | 1122aa3efef161565eecf385deb7b57f646a5d79 (patch) | |
tree | 2b58b6a459ab07ada43d34720c7acb4b359fbb04 /src/OpenSimClient.cs | |
parent | Broken asset code + ObjectUpdate FIXME (diff) | |
download | opensim-SC_OLD-1122aa3efef161565eecf385deb7b57f646a5d79.zip opensim-SC_OLD-1122aa3efef161565eecf385deb7b57f646a5d79.tar.gz opensim-SC_OLD-1122aa3efef161565eecf385deb7b57f646a5d79.tar.bz2 opensim-SC_OLD-1122aa3efef161565eecf385deb7b57f646a5d79.tar.xz |
WOOHOO! Avatar/Asset loading works!
Diffstat (limited to '')
-rw-r--r-- | src/OpenSimClient.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/OpenSimClient.cs b/src/OpenSimClient.cs index 8f07065..59833d8 100644 --- a/src/OpenSimClient.cs +++ b/src/OpenSimClient.cs | |||
@@ -89,7 +89,6 @@ namespace OpenSim | |||
89 | BinaryReader br = new BinaryReader(AssetResponse.GetResponseStream()); | 89 | BinaryReader br = new BinaryReader(AssetResponse.GetResponseStream()); |
90 | idata = br.ReadBytes((int)AssetResponse.ContentLength); | 90 | idata = br.ReadBytes((int)AssetResponse.ContentLength); |
91 | br.Close(); | 91 | br.Close(); |
92 | AssetResponse.Close(); | ||
93 | 92 | ||
94 | TransferInfoPacket Transfer = new TransferInfoPacket(); | 93 | TransferInfoPacket Transfer = new TransferInfoPacket(); |
95 | Transfer.TransferInfo.ChannelType = 2; | 94 | Transfer.TransferInfo.ChannelType = 2; |
@@ -127,6 +126,7 @@ namespace OpenSim | |||
127 | TransferPacket.TransferData.Data = idata; | 126 | TransferPacket.TransferData.Data = idata; |
128 | OutPacket(TransferPacket); | 127 | OutPacket(TransferPacket); |
129 | } | 128 | } |
129 | AssetResponse.Close(); | ||
130 | } | 130 | } |
131 | 131 | ||
132 | public void ProcessInPacket(Packet Pack) { | 132 | public void ProcessInPacket(Packet Pack) { |
@@ -134,10 +134,10 @@ namespace OpenSim | |||
134 | switch(Pack.Type) { | 134 | switch(Pack.Type) { |
135 | case PacketType.CompleteAgentMovement: | 135 | case PacketType.CompleteAgentMovement: |
136 | ClientAvatar.CompleteMovement(OpenSim_Main.local_world); | 136 | ClientAvatar.CompleteMovement(OpenSim_Main.local_world); |
137 | ClientAvatar.SendInitialPosition(); | ||
137 | break; | 138 | break; |
138 | case PacketType.RegionHandshakeReply: | 139 | case PacketType.RegionHandshakeReply: |
139 | OpenSim_Main.local_world.SendLayerData(this); | 140 | OpenSim_Main.local_world.SendLayerData(this); |
140 | ClientAvatar.SendInitialPosition(); | ||
141 | break; | 141 | break; |
142 | case PacketType.AgentWearablesRequest: | 142 | case PacketType.AgentWearablesRequest: |
143 | ClientAvatar.SendInitialAppearance(); | 143 | ClientAvatar.SendInitialAppearance(); |