aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Examples
diff options
context:
space:
mode:
authorJustin Clarke Casey2007-12-22 19:48:01 +0000
committerJustin Clarke Casey2007-12-22 19:48:01 +0000
commitc470efea5734e4515baaf9023f2f2b2cd724725c (patch)
tree23c6c1d80fe1c8995644c2e51002290de7216048 /OpenSim/Region/Examples
parentminor refactor (diff)
downloadopensim-SC_OLD-c470efea5734e4515baaf9023f2f2b2cd724725c.zip
opensim-SC_OLD-c470efea5734e4515baaf9023f2f2b2cd724725c.tar.gz
opensim-SC_OLD-c470efea5734e4515baaf9023f2f2b2cd724725c.tar.bz2
opensim-SC_OLD-c470efea5734e4515baaf9023f2f2b2cd724725c.tar.xz
Make copying of scripts into prim inventories more reliable on the first attempt when the asset server is lagging by formalising the de facto polling.
This may not be the best solution in the long run, but should improve things for now. This may also improve reliability when updating inventory item metadata (e.g. renaming an item) and in retrieving textures for the main map view.
Diffstat (limited to 'OpenSim/Region/Examples')
-rw-r--r--OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
index b31784e..ec93362 100644
--- a/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
+++ b/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
@@ -185,6 +185,11 @@ namespace SimpleApp
185 { 185 {
186 get { return lastName; } 186 get { return lastName; }
187 } 187 }
188
189 public virtual String Name
190 {
191 get { return FirstName + LastName; }
192 }
188 193
189 194
190 public virtual void OutPacket(Packet newPack, ThrottleOutPacketType packType) 195 public virtual void OutPacket(Packet newPack, ThrottleOutPacketType packType)
@@ -394,8 +399,6 @@ namespace SimpleApp
394 399
395 private void Update() 400 private void Update()
396 { 401 {
397 Encoding enc = Encoding.ASCII;
398
399 if (OnAgentUpdate != null) 402 if (OnAgentUpdate != null)
400 { 403 {
401 AgentUpdatePacket pack = new AgentUpdatePacket(); 404 AgentUpdatePacket pack = new AgentUpdatePacket();