aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/Land
diff options
context:
space:
mode:
authorMelanie2010-03-15 17:23:35 +0000
committerMelanie2010-03-15 17:23:35 +0000
commitd3f33acc1a6a385ee19814286fe27cb5e48c1551 (patch)
tree07795e74a637ca63d96b5ee06950b8c1a7a99489 /OpenSim/Region/CoreModules/World/Land
parentMerge branch 'careminster' into careminster-presence-refactor (diff)
parentflip UVs for profile faces (diff)
downloadopensim-SC-d3f33acc1a6a385ee19814286fe27cb5e48c1551.zip
opensim-SC-d3f33acc1a6a385ee19814286fe27cb5e48c1551.tar.gz
opensim-SC-d3f33acc1a6a385ee19814286fe27cb5e48c1551.tar.bz2
opensim-SC-d3f33acc1a6a385ee19814286fe27cb5e48c1551.tar.xz
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Land')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs10
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandObject.cs2
2 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
index e0cdb36..bf856c8 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
@@ -183,7 +183,7 @@ namespace OpenSim.Region.CoreModules.World.Land
183 void ClientOnPreAgentUpdate(IClientAPI remoteClient, AgentUpdateArgs agentData) 183 void ClientOnPreAgentUpdate(IClientAPI remoteClient, AgentUpdateArgs agentData)
184 { 184 {
185 //If we are forcing a position for them to go 185 //If we are forcing a position for them to go
186 if( forcedPosition != null ) 186 if (forcedPosition != null)
187 { 187 {
188 ScenePresence clientAvatar = m_scene.GetScenePresence(remoteClient.AgentId); 188 ScenePresence clientAvatar = m_scene.GetScenePresence(remoteClient.AgentId);
189 189
@@ -199,7 +199,7 @@ namespace OpenSim.Region.CoreModules.World.Land
199 forcedPosition = null; 199 forcedPosition = null;
200 } 200 }
201 //if we are far away, teleport 201 //if we are far away, teleport
202 else if(Vector3.Distance(clientAvatar.AbsolutePosition,forcedPosition.Value) > 3 ) 202 else if (Vector3.Distance(clientAvatar.AbsolutePosition,forcedPosition.Value) > 3)
203 { 203 {
204 Debug.WriteLine(string.Format("Teleporting out because {0} is too far from avatar position {1}",forcedPosition.Value,clientAvatar.AbsolutePosition)); 204 Debug.WriteLine(string.Format("Teleporting out because {0} is too far from avatar position {1}",forcedPosition.Value,clientAvatar.AbsolutePosition));
205 clientAvatar.Teleport(forcedPosition.Value); 205 clientAvatar.Teleport(forcedPosition.Value);
@@ -340,7 +340,7 @@ namespace OpenSim.Region.CoreModules.World.Land
340 340
341 public void SendYouAreRestrictedNotice(ScenePresence avatar) 341 public void SendYouAreRestrictedNotice(ScenePresence avatar)
342 { 342 {
343 avatar.ControllingClient.SendAlertMessage( 343 avatar.ControllingClient.SendAlertMessage(
344 "You are not allowed on this parcel because the land owner has restricted access."); 344 "You are not allowed on this parcel because the land owner has restricted access.");
345 345
346 } 346 }
@@ -475,7 +475,7 @@ namespace OpenSim.Region.CoreModules.World.Land
475 ForceAvatarToPosition(clientAvatar, m_scene.GetNearestAllowedPosition(clientAvatar)); 475 ForceAvatarToPosition(clientAvatar, m_scene.GetNearestAllowedPosition(clientAvatar));
476 } 476 }
477 } 477 }
478 else if ( parcel.IsRestrictedFromLand(clientAvatar.UUID)) 478 else if (parcel.IsRestrictedFromLand(clientAvatar.UUID))
479 { 479 {
480 //once we've sent the message once, keep going toward the target until we are done 480 //once we've sent the message once, keep going toward the target until we are done
481 if (forcedPosition == null) 481 if (forcedPosition == null)
@@ -487,7 +487,7 @@ namespace OpenSim.Region.CoreModules.World.Land
487 else 487 else
488 { 488 {
489 //when we are finally in a safe place, lets release the forced position lock 489 //when we are finally in a safe place, lets release the forced position lock
490 forcedPosition = null; 490 forcedPosition = null;
491 } 491 }
492 } 492 }
493 } 493 }
diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
index 27d9fdb..e85136a 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
@@ -287,7 +287,7 @@ namespace OpenSim.Region.CoreModules.World.Land
287 entry.Flags = AccessList.Ban; 287 entry.Flags = AccessList.Ban;
288 entry.Time = new DateTime(); 288 entry.Time = new DateTime();
289 //See if they are on the list, but make sure the owner isn't banned 289 //See if they are on the list, but make sure the owner isn't banned
290 if (LandData.ParcelAccessList.Contains(entry) && LandData.OwnerID != avatar ) 290 if (LandData.ParcelAccessList.Contains(entry) && LandData.OwnerID != avatar)
291 { 291 {
292 //They are banned, so lets send them a notice about this parcel 292 //They are banned, so lets send them a notice about this parcel
293 return true; 293 return true;