aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDiva Canto2012-02-19 12:28:47 -0800
committerDiva Canto2012-02-19 12:28:47 -0800
commitdcea23906bec0465ca70be558382bcf7f3c96bb0 (patch)
tree00f68ade44e1f5d639902bd94b4459575e79f395
parentA few more tweaks on position updates and create child agents. Mono hates con... (diff)
parentUse localy defined name, TPFlags, for Constants.TeleportFlags (diff)
downloadopensim-SC_OLD-dcea23906bec0465ca70be558382bcf7f3c96bb0.zip
opensim-SC_OLD-dcea23906bec0465ca70be558382bcf7f3c96bb0.tar.gz
opensim-SC_OLD-dcea23906bec0465ca70be558382bcf7f3c96bb0.tar.bz2
opensim-SC_OLD-dcea23906bec0465ca70be558382bcf7f3c96bb0.tar.xz
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandObject.cs3
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs12
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs6
3 files changed, 11 insertions, 10 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
index d146901..cc42f7f 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
@@ -272,7 +272,8 @@ namespace OpenSim.Region.CoreModules.World.Land
272 ParcelFlags.AllowGroupScripts | 272 ParcelFlags.AllowGroupScripts |
273 ParcelFlags.CreateGroupObjects | 273 ParcelFlags.CreateGroupObjects |
274 ParcelFlags.AllowAPrimitiveEntry | 274 ParcelFlags.AllowAPrimitiveEntry |
275 ParcelFlags.AllowGroupObjectEntry); 275 ParcelFlags.AllowGroupObjectEntry |
276 ParcelFlags.AllowFly);
276 } 277 }
277 278
278 if (m_scene.Permissions.CanEditParcelProperties(remote_client.AgentId, this, GroupPowers.LandSetSale)) 279 if (m_scene.Permissions.CanEditParcelProperties(remote_client.AgentId, this, GroupPowers.LandSetSale))
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 13c866d..d2a8ad0 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -3259,10 +3259,10 @@ namespace OpenSim.Region.Framework.Scenes
3259 /// also return a reason.</returns> 3259 /// also return a reason.</returns>
3260 public bool NewUserConnection(AgentCircuitData agent, uint teleportFlags, out string reason, bool requirePresenceLookup) 3260 public bool NewUserConnection(AgentCircuitData agent, uint teleportFlags, out string reason, bool requirePresenceLookup)
3261 { 3261 {
3262 bool vialogin = ((teleportFlags & (uint)Constants.TeleportFlags.ViaLogin) != 0 || 3262 bool vialogin = ((teleportFlags & (uint)TPFlags.ViaLogin) != 0 ||
3263 (teleportFlags & (uint)Constants.TeleportFlags.ViaHGLogin) != 0); 3263 (teleportFlags & (uint)TPFlags.ViaHGLogin) != 0);
3264 bool viahome = ((teleportFlags & (uint)Constants.TeleportFlags.ViaHome) != 0); 3264 bool viahome = ((teleportFlags & (uint)TPFlags.ViaHome) != 0);
3265 bool godlike = ((teleportFlags & (uint)Constants.TeleportFlags.Godlike) != 0); 3265 bool godlike = ((teleportFlags & (uint)TPFlags.Godlike) != 0);
3266 3266
3267 reason = String.Empty; 3267 reason = String.Empty;
3268 3268
@@ -3275,9 +3275,9 @@ namespace OpenSim.Region.Framework.Scenes
3275 3275
3276 // Don't disable this log message - it's too helpful 3276 // Don't disable this log message - it's too helpful
3277 m_log.DebugFormat( 3277 m_log.DebugFormat(
3278 "[SCENE]: Region {0} told of incoming {1} agent {2} {3} {4} (circuit code {5}, IP {6}, viewer {7}, teleportflags {8}, position {9})", 3278 "[SCENE]: Region {0} told of incoming {1} agent {2} {3} {4} (circuit code {5}, IP {6}, viewer {7}, teleportflags ({8}), position {9})",
3279 RegionInfo.RegionName, (agent.child ? "child" : "root"),agent.firstname, agent.lastname, 3279 RegionInfo.RegionName, (agent.child ? "child" : "root"),agent.firstname, agent.lastname,
3280 agent.AgentID, agent.circuitcode, agent.IPAddress, agent.Viewer, teleportFlags, agent.startpos); 3280 agent.AgentID, agent.circuitcode, agent.IPAddress, agent.Viewer, ((TPFlags)teleportFlags).ToString(), agent.startpos);
3281 3281
3282 if (LoginsDisabled) 3282 if (LoginsDisabled)
3283 { 3283 {
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index b130bf7..65905a0 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -1556,9 +1556,9 @@ namespace OpenSim.Region.Framework.Scenes
1556 dupe.GroupPosition = GroupPosition; 1556 dupe.GroupPosition = GroupPosition;
1557 dupe.OffsetPosition = OffsetPosition; 1557 dupe.OffsetPosition = OffsetPosition;
1558 dupe.RotationOffset = RotationOffset; 1558 dupe.RotationOffset = RotationOffset;
1559 dupe.Velocity = new Vector3(0, 0, 0); 1559 dupe.Velocity = Velocity;
1560 dupe.Acceleration = new Vector3(0, 0, 0); 1560 dupe.Acceleration = Acceleration;
1561 dupe.AngularVelocity = new Vector3(0, 0, 0); 1561 dupe.AngularVelocity = AngularVelocity;
1562 dupe.Flags = Flags; 1562 dupe.Flags = Flags;
1563 1563
1564 dupe.OwnershipCost = OwnershipCost; 1564 dupe.OwnershipCost = OwnershipCost;