diff options
author | Melanie | 2014-01-15 22:20:42 +0100 |
---|---|---|
committer | Melanie | 2014-01-15 22:20:42 +0100 |
commit | 321bde8a3afc7cba63e008d8aa2a3adc733031c7 (patch) | |
tree | bfe92aacf2ee0d83e9f09a5cbf16943257c094c8 /OpenSim/Services | |
parent | Mono 2.0 fix - call ToArray() explicitly (diff) | |
download | opensim-SC_OLD-321bde8a3afc7cba63e008d8aa2a3adc733031c7.zip opensim-SC_OLD-321bde8a3afc7cba63e008d8aa2a3adc733031c7.tar.gz opensim-SC_OLD-321bde8a3afc7cba63e008d8aa2a3adc733031c7.tar.bz2 opensim-SC_OLD-321bde8a3afc7cba63e008d8aa2a3adc733031c7.tar.xz |
Minor: Add prentheses to make a condition clearer
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/GridService/GridService.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs index daebf8b..7f71835 100644 --- a/OpenSim/Services/GridService/GridService.cs +++ b/OpenSim/Services/GridService/GridService.cs | |||
@@ -283,7 +283,7 @@ namespace OpenSim.Services.GridService | |||
283 | 283 | ||
284 | int flags = Convert.ToInt32(region.Data["flags"]); | 284 | int flags = Convert.ToInt32(region.Data["flags"]); |
285 | 285 | ||
286 | if (!m_DeleteOnUnregister || (flags & (int)OpenSim.Framework.RegionFlags.Persistent) != 0) | 286 | if ((!m_DeleteOnUnregister) || ((flags & (int)OpenSim.Framework.RegionFlags.Persistent) != 0)) |
287 | { | 287 | { |
288 | flags &= ~(int)OpenSim.Framework.RegionFlags.RegionOnline; | 288 | flags &= ~(int)OpenSim.Framework.RegionFlags.RegionOnline; |
289 | region.Data["flags"] = flags.ToString(); | 289 | region.Data["flags"] = flags.ToString(); |
@@ -298,7 +298,6 @@ namespace OpenSim.Services.GridService | |||
298 | } | 298 | } |
299 | 299 | ||
300 | return true; | 300 | return true; |
301 | |||
302 | } | 301 | } |
303 | 302 | ||
304 | return m_Database.Delete(regionID); | 303 | return m_Database.Delete(regionID); |