aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorUbitUmarov2019-04-05 03:45:27 +0100
committerUbitUmarov2019-04-05 03:45:27 +0100
commit0652f01d4cbae9585f4288b68d1feff1711d6be4 (patch)
tree557a8b2091bd198c21f5d802e4f4f97081dbd364 /OpenSim
parentmantis 8512: fix runprebuild (diff)
downloadopensim-SC-0652f01d4cbae9585f4288b68d1feff1711d6be4.zip
opensim-SC-0652f01d4cbae9585f4288b68d1feff1711d6be4.tar.gz
opensim-SC-0652f01d4cbae9585f4288b68d1feff1711d6be4.tar.bz2
opensim-SC-0652f01d4cbae9585f4288b68d1feff1711d6be4.tar.xz
duhhh npcs don't have child agents; plus minor typos
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs2
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs2
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs2
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs17
-rwxr-xr-xOpenSim/Region/Framework/Scenes/SimStatsReporter.cs2
-rw-r--r--OpenSim/Region/PhysicsModules/ubOde/ODECharacter.cs2
6 files changed, 17 insertions, 10 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
index deeacf5..ea68581 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
@@ -505,7 +505,7 @@ namespace OpenSim.Region.ClientStack.Linden
505 case FileAgentInventoryState.processRequest: 505 case FileAgentInventoryState.processRequest:
506 case FileAgentInventoryState.processUpload: 506 case FileAgentInventoryState.processUpload:
507 LLSDAssetUploadError resperror = new LLSDAssetUploadError(); 507 LLSDAssetUploadError resperror = new LLSDAssetUploadError();
508 resperror.message = "Uploader busy processing previus request"; 508 resperror.message = "Uploader busy processing previous request";
509 resperror.identifier = UUID.Zero; 509 resperror.identifier = UUID.Zero;
510 510
511 LLSDAssetUploadResponse errorResponse = new LLSDAssetUploadResponse(); 511 LLSDAssetUploadResponse errorResponse = new LLSDAssetUploadResponse();
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs
index cf5f0ef..9b8f11a 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs
@@ -724,7 +724,7 @@ namespace OpenSim.Region.ClientStack.Linden
724 int m = curCost.medLODSize - 384; 724 int m = curCost.medLODSize - 384;
725 int h = curCost.highLODSize - 384; 725 int h = curCost.highLODSize - 384;
726 726
727 // use previus higher LOD size on missing ones 727 // use previous higher LOD size on missing ones
728 if (m <= 0) 728 if (m <= 0)
729 m = h; 729 m = h;
730 if (l <= 0) 730 if (l <= 0)
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 8d5980a..a1d2e11 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -929,7 +929,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
929 //BillableFactor 929 //BillableFactor
930 zc.AddFloat(es.BillableFactor); 930 zc.AddFloat(es.BillableFactor);
931 //CacheID 931 //CacheID
932 zc.AddUUID(regionInfo.CacheID); // needs review when we actuall support cache 932 zc.AddUUID(regionInfo.CacheID);
933 //TerrainBase0 933 //TerrainBase0
934 //TerrainBase1 934 //TerrainBase1
935 //TerrainBase2 935 //TerrainBase2
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 438ae4c..f9d1f54 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -3072,10 +3072,14 @@ namespace OpenSim.Region.Framework.Scenes
3072 Vector2 regionSize; 3072 Vector2 regionSize;
3073 regionSize = new Vector2(m_scene.RegionInfo.RegionSizeX, m_scene.RegionInfo.RegionSizeY); 3073 regionSize = new Vector2(m_scene.RegionInfo.RegionSizeX, m_scene.RegionInfo.RegionSizeY);
3074 3074
3075 if (pos.X < 0 || pos.X >= regionSize.X 3075 if (pos.X < 0.5f)
3076 || pos.Y < 0 || pos.Y >= regionSize.Y 3076 pos.X = 0.5f;
3077 || pos.Z < 0) 3077 else if (pos.X > regionSize.X - 0.5f)
3078 return; 3078 pos.X = regionSize.X - 0.5f;
3079 if (pos.Y < 0.5f)
3080 pos.Y = 0.5f;
3081 else if (pos.Y > regionSize.Y - 0.5f)
3082 pos.Y = regionSize.Y - 0.5f;
3079 3083
3080 float terrainHeight; 3084 float terrainHeight;
3081 Scene targetScene = m_scene; 3085 Scene targetScene = m_scene;
@@ -4405,6 +4409,9 @@ namespace OpenSim.Region.Framework.Scenes
4405 m_scene.EventManager.TriggerSignificantClientMovement(this); 4409 m_scene.EventManager.TriggerSignificantClientMovement(this);
4406 } 4410 }
4407 4411
4412 if(IsNPC)
4413 return;
4414
4408 // updates priority recalc 4415 // updates priority recalc
4409 checkRePrioritization(); 4416 checkRePrioritization();
4410 4417
@@ -6720,7 +6727,7 @@ namespace OpenSim.Region.Framework.Scenes
6720 if (p.IsDeleted || p == this || p.ControllingClient == null || !p.ControllingClient.IsActive) 6727 if (p.IsDeleted || p == this || p.ControllingClient == null || !p.ControllingClient.IsActive)
6721 continue; 6728 continue;
6722 6729
6723 // only those on previus parcel need receive kills 6730 // only those on previous parcel need receive kills
6724 if (previusParcelID == p.currentParcelUUID) 6731 if (previusParcelID == p.currentParcelUUID)
6725 { 6732 {
6726 if(!p.IsViewerUIGod) 6733 if(!p.IsViewerUIGod)
diff --git a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
index bc440fc..50b0cb5 100755
--- a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
+++ b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
@@ -556,7 +556,7 @@ namespace OpenSim.Region.Framework.Scenes
556 sb[27].StatID = (uint)Stats.PhysicsLodTasks; 556 sb[27].StatID = (uint)Stats.PhysicsLodTasks;
557 sb[27].StatValue = 0; 557 sb[27].StatValue = 0;
558 558
559 sb[28].StatID = (uint)Stats.ScriptEps; // we actuall have this, but not messing array order AGAIN 559 sb[28].StatID = (uint)Stats.ScriptEps; // we actually have this, but not messing array order AGAIN
560 sb[28].StatValue = (float)Math.Round(m_scriptEventsPerSecond * updateTimeFactor); 560 sb[28].StatValue = (float)Math.Round(m_scriptEventsPerSecond * updateTimeFactor);
561 561
562 sb[29].StatID = (uint)Stats.SimAIStepTimeMS; 562 sb[29].StatID = (uint)Stats.SimAIStepTimeMS;
diff --git a/OpenSim/Region/PhysicsModules/ubOde/ODECharacter.cs b/OpenSim/Region/PhysicsModules/ubOde/ODECharacter.cs
index 7ad5e3d..267fc5b 100644
--- a/OpenSim/Region/PhysicsModules/ubOde/ODECharacter.cs
+++ b/OpenSim/Region/PhysicsModules/ubOde/ODECharacter.cs
@@ -1603,7 +1603,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde
1603 } 1603 }
1604 else 1604 else
1605 { 1605 {
1606 Vector3 a = _velocity; // previus velocity 1606 Vector3 a = _velocity; // previous velocity
1607 SetSmooth(ref _velocity,ref vel,2); 1607 SetSmooth(ref _velocity,ref vel,2);
1608 a = (_velocity - a) * invtimeStep; 1608 a = (_velocity - a) * invtimeStep;
1609 SetSmooth(ref _acceleration,ref a,2); 1609 SetSmooth(ref _acceleration,ref a,2);