diff options
author | Melanie Thielker | 2010-08-04 00:45:15 +0200 |
---|---|---|
committer | Melanie Thielker | 2010-08-04 00:45:15 +0200 |
commit | d9ae8370632810ae10bc1ca4e7a2c51431200d0d (patch) | |
tree | 85a49faf8d8a71139f8be31f28a729bb97f1ce82 /OpenSim/Services/GridService/GridService.cs | |
parent | Fix some more issues causing regions with corrupt sculpts to freeze. (diff) | |
download | opensim-SC_OLD-d9ae8370632810ae10bc1ca4e7a2c51431200d0d.zip opensim-SC_OLD-d9ae8370632810ae10bc1ca4e7a2c51431200d0d.tar.gz opensim-SC_OLD-d9ae8370632810ae10bc1ca4e7a2c51431200d0d.tar.bz2 opensim-SC_OLD-d9ae8370632810ae10bc1ca4e7a2c51431200d0d.tar.xz |
Allow specifying default region flags. Correct a typo.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/GridService/GridService.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs index f49d86d..ebaed42 100644 --- a/OpenSim/Services/GridService/GridService.cs +++ b/OpenSim/Services/GridService/GridService.cs | |||
@@ -124,7 +124,7 @@ namespace OpenSim.Services.GridService | |||
124 | { | 124 | { |
125 | // Regions reserved for the null key cannot be taken. | 125 | // Regions reserved for the null key cannot be taken. |
126 | if ((string)region.Data["PrincipalID"] == UUID.Zero.ToString()) | 126 | if ((string)region.Data["PrincipalID"] == UUID.Zero.ToString()) |
127 | return "Region location us reserved"; | 127 | return "Region location is reserved"; |
128 | 128 | ||
129 | // Treat it as an auth request | 129 | // Treat it as an auth request |
130 | // | 130 | // |
@@ -210,6 +210,7 @@ namespace OpenSim.Services.GridService | |||
210 | { | 210 | { |
211 | int newFlags = 0; | 211 | int newFlags = 0; |
212 | string regionName = rdata.RegionName.Trim().Replace(' ', '_'); | 212 | string regionName = rdata.RegionName.Trim().Replace(' ', '_'); |
213 | newFlags = ParseFlags(newFlags, gridConfig.GetString("DefaultRegionFlags", String.Empty)); | ||
213 | newFlags = ParseFlags(newFlags, gridConfig.GetString("Region_" + regionName, String.Empty)); | 214 | newFlags = ParseFlags(newFlags, gridConfig.GetString("Region_" + regionName, String.Empty)); |
214 | newFlags = ParseFlags(newFlags, gridConfig.GetString("Region_" + rdata.RegionID.ToString(), String.Empty)); | 215 | newFlags = ParseFlags(newFlags, gridConfig.GetString("Region_" + rdata.RegionID.ToString(), String.Empty)); |
215 | rdata.Data["flags"] = newFlags.ToString(); | 216 | rdata.Data["flags"] = newFlags.ToString(); |