aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
diff options
context:
space:
mode:
authorTeravus Ovares2007-11-22 01:32:13 +0000
committerTeravus Ovares2007-11-22 01:32:13 +0000
commite69c810486e63e8b4398c7b67e84d73154d2dfcf (patch)
tree21423ba1dfad709e85a52e455d2c65840bad21d2 /OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
parentFixed bug that can lead to infinitive loops (diff)
downloadopensim-SC_OLD-e69c810486e63e8b4398c7b67e84d73154d2dfcf.zip
opensim-SC_OLD-e69c810486e63e8b4398c7b67e84d73154d2dfcf.tar.gz
opensim-SC_OLD-e69c810486e63e8b4398c7b67e84d73154d2dfcf.tar.bz2
opensim-SC_OLD-e69c810486e63e8b4398c7b67e84d73154d2dfcf.tar.xz
* Added code to capture the draw distance setting from the client.
* Added a support function to InnerScene to calculate the distance between two vectors.
Diffstat (limited to 'OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs')
-rw-r--r--OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
index f7af2f2..65c8ee7 100644
--- a/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
+++ b/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
@@ -364,7 +364,10 @@ namespace SimpleApp
364 364
365 if (OnAgentUpdate != null) 365 if (OnAgentUpdate != null)
366 { 366 {
367 OnAgentUpdate(this, movementFlag, bodyDirection); 367 AgentUpdatePacket pack = new AgentUpdatePacket();
368 pack.AgentData.ControlFlags = movementFlag;
369 pack.AgentData.BodyRotation = bodyDirection;
370 OnAgentUpdate(this, pack);
368 } 371 }
369 if (flyState == 0) 372 if (flyState == 0)
370 { 373 {