aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World
diff options
context:
space:
mode:
authorUbitUmarov2017-08-24 02:18:40 +0100
committerUbitUmarov2017-08-24 02:18:40 +0100
commita1aa2f1add241e08642c9d4a29c3809fbc6180aa (patch)
treec0e81f48690622fd88a83f9fbf27197e02a6fef3 /OpenSim/Region/CoreModules/World
parentMerge branch 'master' into httptests (diff)
parentfrozen avatars should not do local teleports. Possible none should not be all... (diff)
downloadopensim-SC-a1aa2f1add241e08642c9d4a29c3809fbc6180aa.zip
opensim-SC-a1aa2f1add241e08642c9d4a29c3809fbc6180aa.tar.gz
opensim-SC-a1aa2f1add241e08642c9d4a29c3809fbc6180aa.tar.bz2
opensim-SC-a1aa2f1add241e08642c9d4a29c3809fbc6180aa.tar.xz
Merge branch 'master' into httptests
Diffstat (limited to 'OpenSim/Region/CoreModules/World')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs6
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandObject.cs2
2 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
index 760f621..c32de62 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
@@ -2201,12 +2201,12 @@ namespace OpenSim.Region.CoreModules.World.Land
2201 ((Scene)client.Scene).TryGetScenePresence(client.AgentId, out parcelManager); 2201 ((Scene)client.Scene).TryGetScenePresence(client.AgentId, out parcelManager);
2202 System.Threading.Timer Timer; 2202 System.Threading.Timer Timer;
2203 2203
2204 if (targetAvatar.GodController.UserLevel == 0) 2204 if (targetAvatar.GodController.UserLevel < 200)
2205 { 2205 {
2206 ILandObject land = ((Scene)client.Scene).LandChannel.GetLandObject(targetAvatar.AbsolutePosition.X, targetAvatar.AbsolutePosition.Y); 2206 ILandObject land = ((Scene)client.Scene).LandChannel.GetLandObject(targetAvatar.AbsolutePosition.X, targetAvatar.AbsolutePosition.Y);
2207 if (!((Scene)client.Scene).Permissions.CanEditParcelProperties(client.AgentId, land, GroupPowers.LandEjectAndFreeze, true)) 2207 if (!((Scene)client.Scene).Permissions.CanEditParcelProperties(client.AgentId, land, GroupPowers.LandEjectAndFreeze, true))
2208 return; 2208 return;
2209 if (flags == 0) 2209 if ((flags & 1) == 0) // only lowest bit has meaning for now
2210 { 2210 {
2211 targetAvatar.AllowMovement = false; 2211 targetAvatar.AllowMovement = false;
2212 targetAvatar.ControllingClient.SendAlertMessage(parcelManager.Firstname + " " + parcelManager.Lastname + " has frozen you for 30 seconds. You cannot move or interact with the world."); 2212 targetAvatar.ControllingClient.SendAlertMessage(parcelManager.Firstname + " " + parcelManager.Lastname + " has frozen you for 30 seconds. You cannot move or interact with the world.");
@@ -2258,7 +2258,7 @@ namespace OpenSim.Region.CoreModules.World.Land
2258 2258
2259 Vector3 pos = m_scene.GetNearestAllowedPosition(targetAvatar, land); 2259 Vector3 pos = m_scene.GetNearestAllowedPosition(targetAvatar, land);
2260 2260
2261 targetAvatar.TeleportWithMomentum(pos, null); 2261 targetAvatar.TeleportOnEject(pos);
2262 targetAvatar.ControllingClient.SendAlertMessage("You have been ejected by " + parcelManager.Firstname + " " + parcelManager.Lastname); 2262 targetAvatar.ControllingClient.SendAlertMessage("You have been ejected by " + parcelManager.Firstname + " " + parcelManager.Lastname);
2263 parcelManager.ControllingClient.SendAlertMessage("Avatar Ejected."); 2263 parcelManager.ControllingClient.SendAlertMessage("Avatar Ejected.");
2264 2264
diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
index 07d11f9..4471432 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
@@ -1886,7 +1886,7 @@ namespace OpenSim.Region.CoreModules.World.Land
1886 if (land.LandData.LocalID == LandData.LocalID) 1886 if (land.LandData.LocalID == LandData.LocalID)
1887 { 1887 {
1888 Vector3 pos = m_scene.GetNearestAllowedPosition(presence, land); 1888 Vector3 pos = m_scene.GetNearestAllowedPosition(presence, land);
1889 presence.TeleportWithMomentum(pos, null); 1889 presence.TeleportOnEject(pos);
1890 presence.ControllingClient.SendAlertMessage("You have been ejected from this land"); 1890 presence.ControllingClient.SendAlertMessage("You have been ejected from this land");
1891 } 1891 }
1892 } 1892 }