aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
diff options
context:
space:
mode:
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 {