aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
authorTeravus Ovares2009-07-25 15:49:10 +0000
committerTeravus Ovares2009-07-25 15:49:10 +0000
commit64bd9a335444379ebe1cad8e34d5b5953a76f671 (patch)
tree66b9ce07dbf95e4c118e3d639068e2c44fc52f58 /OpenSim/Region/CoreModules
parent* Apply http://opensimulator.org/mantis/view.php?id=3586 (diff)
downloadopensim-SC-64bd9a335444379ebe1cad8e34d5b5953a76f671.zip
opensim-SC-64bd9a335444379ebe1cad8e34d5b5953a76f671.tar.gz
opensim-SC-64bd9a335444379ebe1cad8e34d5b5953a76f671.tar.bz2
opensim-SC-64bd9a335444379ebe1cad8e34d5b5953a76f671.tar.xz
* Updates libOMV to version 0.7.0
* Uses mantis #3811 as a base (thanks jhuliman) with changes. * E-mail regarding interface changes sent to the opensim-dev list * Archive: https://lists.berlios.de/pipermail/opensim-dev/2009-July/007219.html
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/Agent/TextureSender/J2KDecoderModule.cs3
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Combat/CombatModule.cs2
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs6
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandObject.cs10
-rw-r--r--OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs8
5 files changed, 15 insertions, 14 deletions
diff --git a/OpenSim/Region/CoreModules/Agent/TextureSender/J2KDecoderModule.cs b/OpenSim/Region/CoreModules/Agent/TextureSender/J2KDecoderModule.cs
index c0ca126..0d3cc23 100644
--- a/OpenSim/Region/CoreModules/Agent/TextureSender/J2KDecoderModule.cs
+++ b/OpenSim/Region/CoreModules/Agent/TextureSender/J2KDecoderModule.cs
@@ -33,6 +33,7 @@ using System.Text;
33using log4net; 33using log4net;
34using Nini.Config; 34using Nini.Config;
35using OpenMetaverse; 35using OpenMetaverse;
36using OpenMetaverse.Assets;
36using OpenMetaverse.Imaging; 37using OpenMetaverse.Imaging;
37using OpenSim.Framework; 38using OpenSim.Framework;
38using OpenSim.Region.Framework.Interfaces; 39using OpenSim.Region.Framework.Interfaces;
@@ -391,7 +392,7 @@ namespace OpenSim.Region.CoreModules.Agent.TextureSender
391 if (i == (Layers.Length - 1)) 392 if (i == (Layers.Length - 1))
392 strEnd = ""; 393 strEnd = "";
393 394
394 stringResult.AppendFormat("{0}|{1}|{2}{3}", Layers[i].Start, Layers[i].End, Layers[i].Size, strEnd); 395 stringResult.AppendFormat("{0}|{1}|{2}{3}", Layers[i].Start, Layers[i].End, Layers[i].End - Layers[i].Start, strEnd);
395 } 396 }
396 fsSWCache.Write(stringResult.ToString()); 397 fsSWCache.Write(stringResult.ToString());
397 fsSWCache.Close(); 398 fsSWCache.Close();
diff --git a/OpenSim/Region/CoreModules/Avatar/Combat/CombatModule.cs b/OpenSim/Region/CoreModules/Avatar/Combat/CombatModule.cs
index 171add8..87f137e 100644
--- a/OpenSim/Region/CoreModules/Avatar/Combat/CombatModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Combat/CombatModule.cs
@@ -146,7 +146,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Combat.CombatModule
146 private void AvatarEnteringParcel(ScenePresence avatar, int localLandID, UUID regionID) 146 private void AvatarEnteringParcel(ScenePresence avatar, int localLandID, UUID regionID)
147 { 147 {
148 ILandObject obj = avatar.Scene.LandChannel.GetLandObject(avatar.AbsolutePosition.X, avatar.AbsolutePosition.Y); 148 ILandObject obj = avatar.Scene.LandChannel.GetLandObject(avatar.AbsolutePosition.X, avatar.AbsolutePosition.Y);
149 if ((obj.landData.Flags & (uint)Parcel.ParcelFlags.AllowDamage) != 0) 149 if ((obj.landData.Flags & (uint)ParcelFlags.AllowDamage) != 0)
150 { 150 {
151 avatar.Invulnerable = false; 151 avatar.Invulnerable = false;
152 } 152 }
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
index 4c108f5..e385ae0 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
@@ -301,12 +301,12 @@ namespace OpenSim.Region.CoreModules.World.Land
301 { 301 {
302 if (checkBan.isBannedFromLand(avatar.AgentId)) 302 if (checkBan.isBannedFromLand(avatar.AgentId))
303 { 303 {
304 checkBan.sendLandProperties((int)ParcelStatus.CollisionBanned, false, (int)ParcelResult.Single, avatar); 304 checkBan.sendLandProperties((int)ParcelPropertiesStatus.CollisionBanned, false, (int)ParcelResult.Single, avatar);
305 return; //Only send one 305 return; //Only send one
306 } 306 }
307 if (checkBan.isRestrictedFromLand(avatar.AgentId)) 307 if (checkBan.isRestrictedFromLand(avatar.AgentId))
308 { 308 {
309 checkBan.sendLandProperties((int)ParcelStatus.CollisionNotOnAccessList, false, (int)ParcelResult.Single, avatar); 309 checkBan.sendLandProperties((int)ParcelPropertiesStatus.CollisionNotOnAccessList, false, (int)ParcelResult.Single, avatar);
310 return; //Only send one 310 return; //Only send one
311 } 311 }
312 } 312 }
@@ -1116,7 +1116,7 @@ namespace OpenSim.Region.CoreModules.World.Land
1116 UUID pOwnerID = lob.landData.OwnerID; 1116 UUID pOwnerID = lob.landData.OwnerID;
1117 1117
1118 bool landforsale = ((lob.landData.Flags & 1118 bool landforsale = ((lob.landData.Flags &
1119 (uint)(Parcel.ParcelFlags.ForSale | Parcel.ParcelFlags.ForSaleObjects | Parcel.ParcelFlags.SellParcelObjects)) != 0); 1119 (uint)(ParcelFlags.ForSale | ParcelFlags.ForSaleObjects | ParcelFlags.SellParcelObjects)) != 0);
1120 if ((AuthorizedID == UUID.Zero || AuthorizedID == e.agentId) && e.parcelPrice >= saleprice && landforsale) 1120 if ((AuthorizedID == UUID.Zero || AuthorizedID == e.agentId) && e.parcelPrice >= saleprice && landforsale)
1121 { 1121 {
1122 // TODO I don't think we have to lock it here, no? 1122 // TODO I don't think we have to lock it here, no?
diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
index b800bb3..715b48d 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
@@ -167,7 +167,7 @@ namespace OpenSim.Region.CoreModules.World.Land
167 167
168 // In a perfect world, this would have worked. 168 // In a perfect world, this would have worked.
169 // 169 //
170// if ((landData.Flags & (uint)Parcel.ParcelFlags.AllowLandmark) != 0) 170// if ((landData.Flags & (uint)ParcelFlags.AllowLandmark) != 0)
171// regionFlags |= (uint)RegionFlags.AllowLandmark; 171// regionFlags |= (uint)RegionFlags.AllowLandmark;
172// if (landData.OwnerID == remote_client.AgentId) 172// if (landData.OwnerID == remote_client.AgentId)
173// regionFlags |= (uint)RegionFlags.AllowSetHome; 173// regionFlags |= (uint)RegionFlags.AllowSetHome;
@@ -226,7 +226,7 @@ namespace OpenSim.Region.CoreModules.World.Land
226 newData.ClaimPrice = claimprice; 226 newData.ClaimPrice = claimprice;
227 newData.SalePrice = 0; 227 newData.SalePrice = 0;
228 newData.AuthBuyerID = UUID.Zero; 228 newData.AuthBuyerID = UUID.Zero;
229 newData.Flags &= ~(uint) (Parcel.ParcelFlags.ForSale | Parcel.ParcelFlags.ForSaleObjects | Parcel.ParcelFlags.SellParcelObjects); 229 newData.Flags &= ~(uint) (ParcelFlags.ForSale | ParcelFlags.ForSaleObjects | ParcelFlags.SellParcelObjects);
230 m_scene.LandChannel.UpdateLandObject(landData.LocalID, newData); 230 m_scene.LandChannel.UpdateLandObject(landData.LocalID, newData);
231 231
232 sendLandUpdateToAvatarsOverMe(); 232 sendLandUpdateToAvatarsOverMe();
@@ -259,7 +259,7 @@ namespace OpenSim.Region.CoreModules.World.Land
259 259
260 public bool isBannedFromLand(UUID avatar) 260 public bool isBannedFromLand(UUID avatar)
261 { 261 {
262 if ((landData.Flags & (uint) Parcel.ParcelFlags.UseBanList) > 0) 262 if ((landData.Flags & (uint) ParcelFlags.UseBanList) > 0)
263 { 263 {
264 ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry(); 264 ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry();
265 entry.AgentID = avatar; 265 entry.AgentID = avatar;
@@ -276,7 +276,7 @@ namespace OpenSim.Region.CoreModules.World.Land
276 276
277 public bool isRestrictedFromLand(UUID avatar) 277 public bool isRestrictedFromLand(UUID avatar)
278 { 278 {
279 if ((landData.Flags & (uint) Parcel.ParcelFlags.UseAccessList) > 0) 279 if ((landData.Flags & (uint) ParcelFlags.UseAccessList) > 0)
280 { 280 {
281 ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry(); 281 ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry();
282 entry.AgentID = avatar; 282 entry.AgentID = avatar;
@@ -318,7 +318,7 @@ namespace OpenSim.Region.CoreModules.World.Land
318 { 318 {
319 if (over.landData.LocalID == landData.LocalID) 319 if (over.landData.LocalID == landData.LocalID)
320 { 320 {
321 if (((over.landData.Flags & (uint)Parcel.ParcelFlags.AllowDamage) != 0) && m_scene.RegionInfo.RegionSettings.AllowDamage) 321 if (((over.landData.Flags & (uint)ParcelFlags.AllowDamage) != 0) && m_scene.RegionInfo.RegionSettings.AllowDamage)
322 avatars[i].Invulnerable = false; 322 avatars[i].Invulnerable = false;
323 else 323 else
324 avatars[i].Invulnerable = true; 324 avatars[i].Invulnerable = true;
diff --git a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
index 99035b6..5c0d3db 100644
--- a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
+++ b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
@@ -1186,7 +1186,7 @@ namespace OpenSim.Region.CoreModules.World.Permissions
1186 return false; 1186 return false;
1187 } 1187 }
1188 1188
1189 if ((land.landData.Flags & ((int)Parcel.ParcelFlags.AllowAPrimitiveEntry)) != 0) 1189 if ((land.landData.Flags & ((int)ParcelFlags.AllowAPrimitiveEntry)) != 0)
1190 { 1190 {
1191 return true; 1191 return true;
1192 } 1192 }
@@ -1230,8 +1230,8 @@ namespace OpenSim.Region.CoreModules.World.Permissions
1230 ILandObject land = m_scene.LandChannel.GetLandObject(objectPosition.X, objectPosition.Y); 1230 ILandObject land = m_scene.LandChannel.GetLandObject(objectPosition.X, objectPosition.Y);
1231 if (land == null) return false; 1231 if (land == null) return false;
1232 1232
1233 if ((land.landData.Flags & ((int)Parcel.ParcelFlags.CreateObjects)) == 1233 if ((land.landData.Flags & ((int)ParcelFlags.CreateObjects)) ==
1234 (int)Parcel.ParcelFlags.CreateObjects) 1234 (int)ParcelFlags.CreateObjects)
1235 permission = true; 1235 permission = true;
1236 1236
1237 if (IsAdministrator(owner)) 1237 if (IsAdministrator(owner))
@@ -1357,7 +1357,7 @@ namespace OpenSim.Region.CoreModules.World.Permissions
1357 return false; 1357 return false;
1358 1358
1359 // Others allowed to terraform? 1359 // Others allowed to terraform?
1360 if ((parcel.landData.Flags & ((int)Parcel.ParcelFlags.AllowTerraform)) != 0) 1360 if ((parcel.landData.Flags & ((int)ParcelFlags.AllowTerraform)) != 0)
1361 return true; 1361 return true;
1362 1362
1363 // Land owner can terraform too 1363 // Land owner can terraform too