diff options
author | Melanie | 2011-03-22 09:29:40 +0100 |
---|---|---|
committer | Melanie | 2011-03-22 09:29:40 +0100 |
commit | 3cfaf4c2251a4f10ecfd37377f2254b4032ffd10 (patch) | |
tree | 39a1850458bd0ade739015936d773f88d52c0363 /OpenSim | |
parent | Add a definition for a region flag to omit a region from traffic counting (diff) | |
download | opensim-SC_OLD-3cfaf4c2251a4f10ecfd37377f2254b4032ffd10.zip opensim-SC_OLD-3cfaf4c2251a4f10ecfd37377f2254b4032ffd10.tar.gz opensim-SC_OLD-3cfaf4c2251a4f10ecfd37377f2254b4032ffd10.tar.bz2 opensim-SC_OLD-3cfaf4c2251a4f10ecfd37377f2254b4032ffd10.tar.xz |
Adding a helper function lifted from Aurora. Not for core.
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Framework/EstateSettings.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Framework/EstateSettings.cs b/OpenSim/Framework/EstateSettings.cs index f9c13f3..37f6ed7 100644 --- a/OpenSim/Framework/EstateSettings.cs +++ b/OpenSim/Framework/EstateSettings.cs | |||
@@ -392,5 +392,14 @@ namespace OpenSim.Framework | |||
392 | 392 | ||
393 | return l_EstateAccess.Contains(user); | 393 | return l_EstateAccess.Contains(user); |
394 | } | 394 | } |
395 | |||
396 | public void SetFromFlags(ulong regionFlags) | ||
397 | { | ||
398 | ResetHomeOnTeleport = ((regionFlags & (ulong)RegionFlags.ResetHomeOnTeleport) == (ulong)RegionFlags.ResetHomeOnTeleport); | ||
399 | BlockDwell = ((regionFlags & (ulong)RegionFlags.BlockDwell) == (ulong)RegionFlags.BlockDwell); | ||
400 | AllowLandmark = ((regionFlags & (ulong)RegionFlags.AllowLandmark) == (ulong)RegionFlags.AllowLandmark); | ||
401 | AllowParcelChanges = ((regionFlags & (ulong)RegionFlags.AllowParcelChanges) == (ulong)RegionFlags.AllowParcelChanges); | ||
402 | AllowSetHome = ((regionFlags & (ulong)RegionFlags.AllowSetHome) == (ulong)RegionFlags.AllowSetHome); | ||
403 | } | ||
395 | } | 404 | } |
396 | } | 405 | } |