diff options
author | Diva Canto | 2010-07-31 16:40:58 -0700 |
---|---|---|
committer | Diva Canto | 2010-07-31 16:40:58 -0700 |
commit | c4ecbd1fb1ce5450b66a7de41a0e34cc3474e04a (patch) | |
tree | 0bdf9adcb49a5de2779bc2dee7c62027d3830c89 /OpenSim/Data/MySQL/MySQLRegionData.cs | |
parent | Implemented console command "show hyperlinks". (diff) | |
download | opensim-SC_OLD-c4ecbd1fb1ce5450b66a7de41a0e34cc3474e04a.zip opensim-SC_OLD-c4ecbd1fb1ce5450b66a7de41a0e34cc3474e04a.tar.gz opensim-SC_OLD-c4ecbd1fb1ce5450b66a7de41a0e34cc3474e04a.tar.bz2 opensim-SC_OLD-c4ecbd1fb1ce5450b66a7de41a0e34cc3474e04a.tar.xz |
White space from previous commit.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLRegionData.cs | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/OpenSim/Data/MySQL/MySQLRegionData.cs b/OpenSim/Data/MySQL/MySQLRegionData.cs index 6dc62c6..aec37e2 100644 --- a/OpenSim/Data/MySQL/MySQLRegionData.cs +++ b/OpenSim/Data/MySQL/MySQLRegionData.cs | |||
@@ -280,35 +280,35 @@ namespace OpenSim.Data.MySQL | |||
280 | } | 280 | } |
281 | 281 | ||
282 | return false; | 282 | return false; |
283 | } | 283 | } |
284 | 284 | ||
285 | public List<RegionData> GetDefaultRegions(UUID scopeID) | 285 | public List<RegionData> GetDefaultRegions(UUID scopeID) |
286 | { | 286 | { |
287 | return Get((int)RegionFlags.DefaultRegion, scopeID); | 287 | return Get((int)RegionFlags.DefaultRegion, scopeID); |
288 | } | 288 | } |
289 | 289 | ||
290 | public List<RegionData> GetFallbackRegions(UUID scopeID, int x, int y) | 290 | public List<RegionData> GetFallbackRegions(UUID scopeID, int x, int y) |
291 | { | 291 | { |
292 | // TODO: distance-sort results | 292 | // TODO: distance-sort results |
293 | return Get((int)RegionFlags.FallbackRegion, scopeID); | 293 | return Get((int)RegionFlags.FallbackRegion, scopeID); |
294 | } | 294 | } |
295 | 295 | ||
296 | public List<RegionData> GetHyperlinks(UUID scopeID) | 296 | public List<RegionData> GetHyperlinks(UUID scopeID) |
297 | { | 297 | { |
298 | return Get((int)RegionFlags.Hyperlink, scopeID); | 298 | return Get((int)RegionFlags.Hyperlink, scopeID); |
299 | } | 299 | } |
300 | 300 | ||
301 | private List<RegionData> Get(int regionFlags, UUID scopeID) | 301 | private List<RegionData> Get(int regionFlags, UUID scopeID) |
302 | { | 302 | { |
303 | string command = "select * from `" + m_Realm + "` where (flags & " + regionFlags.ToString() + ") <> 0"; | 303 | string command = "select * from `" + m_Realm + "` where (flags & " + regionFlags.ToString() + ") <> 0"; |
304 | if (scopeID != UUID.Zero) | 304 | if (scopeID != UUID.Zero) |
305 | command += " and ScopeID = ?scopeID"; | 305 | command += " and ScopeID = ?scopeID"; |
306 | 306 | ||
307 | MySqlCommand cmd = new MySqlCommand(command); | 307 | MySqlCommand cmd = new MySqlCommand(command); |
308 | 308 | ||
309 | cmd.Parameters.AddWithValue("?scopeID", scopeID.ToString()); | 309 | cmd.Parameters.AddWithValue("?scopeID", scopeID.ToString()); |
310 | 310 | ||
311 | return RunCommand(cmd); | 311 | return RunCommand(cmd); |
312 | } | 312 | } |
313 | } | 313 | } |
314 | } | 314 | } |