diff options
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r-- | OpenSim/Region/Environment/PermissionManager.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/PermissionManager.cs b/OpenSim/Region/Environment/PermissionManager.cs index ab2ad8d..ac126c9 100644 --- a/OpenSim/Region/Environment/PermissionManager.cs +++ b/OpenSim/Region/Environment/PermissionManager.cs | |||
@@ -245,8 +245,20 @@ namespace OpenSim.Region.Environment | |||
245 | if (GenericEstatePermission(user)) | 245 | if (GenericEstatePermission(user)) |
246 | permission = true; | 246 | permission = true; |
247 | 247 | ||
248 | float X = position.X; | ||
249 | float Y = position.Y; | ||
250 | |||
251 | if (X > 255) | ||
252 | X = 255; | ||
253 | if (Y > 255) | ||
254 | Y = 255; | ||
255 | if (X < 0) | ||
256 | X = 0; | ||
257 | if (Y < 0) | ||
258 | Y = 0; | ||
259 | |||
248 | // Land owner can terraform too | 260 | // Land owner can terraform too |
249 | if (GenericParcelPermission(user, m_scene.LandManager.getLandObject(position.X, position.Y))) | 261 | if (GenericParcelPermission(user, m_scene.LandManager.getLandObject(X, Y))) |
250 | permission = true; | 262 | permission = true; |
251 | 263 | ||
252 | if (!permission) | 264 | if (!permission) |