aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
authorMelanie2012-09-10 13:53:00 +0100
committerMelanie2012-09-10 13:53:00 +0100
commit21c476228a1dbeef1f180a16e9ebb47c8b3fa185 (patch)
tree5a2fc5d269eb4711fa2ace11d04731e7dc08607b /OpenSim/Region/Framework/Scenes/ScenePresence.cs
parentMerge branch 'master' into careminster (diff)
parentRemove commented code (diff)
downloadopensim-SC-21c476228a1dbeef1f180a16e9ebb47c8b3fa185.zip
opensim-SC-21c476228a1dbeef1f180a16e9ebb47c8b3fa185.tar.gz
opensim-SC-21c476228a1dbeef1f180a16e9ebb47c8b3fa185.tar.bz2
opensim-SC-21c476228a1dbeef1f180a16e9ebb47c8b3fa185.tar.xz
Merge branch 'avination' into careminster
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 0176921..adb3d38 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -1266,7 +1266,8 @@ namespace OpenSim.Region.Framework.Scenes
1266 1266
1267 Vector3 look = Velocity; 1267 Vector3 look = Velocity;
1268 1268
1269 if ((look.X == 0) && (look.Y == 0) && (look.Z == 0)) 1269 // if ((look.X == 0) && (look.Y == 0) && (look.Z == 0))
1270 if ((Math.Abs(look.X) < 0.1) && (Math.Abs(look.Y) < 0.1) && (Math.Abs(look.Z) < 0.1))
1270 { 1271 {
1271 look = new Vector3(0.99f, 0.042f, 0); 1272 look = new Vector3(0.99f, 0.042f, 0);
1272 } 1273 }
@@ -1316,13 +1317,15 @@ namespace OpenSim.Region.Framework.Scenes
1316 // Create child agents in neighbouring regions 1317 // Create child agents in neighbouring regions
1317 if (openChildAgents && !IsChildAgent) 1318 if (openChildAgents && !IsChildAgent)
1318 { 1319 {
1320
1319 IEntityTransferModule m_agentTransfer = m_scene.RequestModuleInterface<IEntityTransferModule>(); 1321 IEntityTransferModule m_agentTransfer = m_scene.RequestModuleInterface<IEntityTransferModule>();
1320 if (m_agentTransfer != null) 1322 if (m_agentTransfer != null)
1321 Util.FireAndForget(delegate { m_agentTransfer.EnableChildAgents(this); }); 1323 m_agentTransfer.EnableChildAgents(this);
1322 1324
1323 IFriendsModule friendsModule = m_scene.RequestModuleInterface<IFriendsModule>(); 1325 IFriendsModule friendsModule = m_scene.RequestModuleInterface<IFriendsModule>();
1324 if (friendsModule != null) 1326 if (friendsModule != null)
1325 friendsModule.SendFriendsOnlineIfNeeded(ControllingClient); 1327 friendsModule.SendFriendsOnlineIfNeeded(ControllingClient);
1328
1326 } 1329 }
1327 1330
1328// m_log.DebugFormat( 1331// m_log.DebugFormat(
@@ -3438,7 +3441,7 @@ namespace OpenSim.Region.Framework.Scenes
3438 /// <param name="e"></param> 3441 /// <param name="e"></param>
3439 public void PhysicsCollisionUpdate(EventArgs e) 3442 public void PhysicsCollisionUpdate(EventArgs e)
3440 { 3443 {
3441 if (IsChildAgent) 3444 if (IsChildAgent || Animator == null)
3442 return; 3445 return;
3443 3446
3444 //if ((Math.Abs(Velocity.X) > 0.1e-9f) || (Math.Abs(Velocity.Y) > 0.1e-9f)) 3447 //if ((Math.Abs(Velocity.X) > 0.1e-9f) || (Math.Abs(Velocity.Y) > 0.1e-9f))