aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
authorJeff Ames2009-09-03 02:04:17 +0900
committerJeff Ames2009-09-03 02:04:17 +0900
commit56ddd6828cf5799405e2940cbde064ef06c3dd53 (patch)
tree33a617f030288db01b5a8107f1ce83e9d8db6819 /OpenSim/Region/CoreModules
parentMerge branch 'master' of ssh://melanie@opensimulator.org/var/git/opensim (diff)
downloadopensim-SC_OLD-56ddd6828cf5799405e2940cbde064ef06c3dd53.zip
opensim-SC_OLD-56ddd6828cf5799405e2940cbde064ef06c3dd53.tar.gz
opensim-SC_OLD-56ddd6828cf5799405e2940cbde064ef06c3dd53.tar.bz2
opensim-SC_OLD-56ddd6828cf5799405e2940cbde064ef06c3dd53.tar.xz
Add copyright headers. Formatting cleanup.
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/RegionCombinerModule.cs51
1 files changed, 39 insertions, 12 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/RegionCombinerModule.cs b/OpenSim/Region/CoreModules/World/Land/RegionCombinerModule.cs
index c525227..0ede5c1 100644
--- a/OpenSim/Region/CoreModules/World/Land/RegionCombinerModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/RegionCombinerModule.cs
@@ -1,4 +1,31 @@
1using System; 1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
2using System.Collections.Generic; 29using System.Collections.Generic;
3using System.Reflection; 30using System.Reflection;
4using log4net; 31using log4net;
@@ -343,13 +370,13 @@ namespace OpenSim.Region.CoreModules.World.Land
343 conn.RegionScene.PhysicsScene.Combine(null,Vector3.Zero,extents); 370 conn.RegionScene.PhysicsScene.Combine(null,Vector3.Zero,extents);
344 scene.PhysicsScene.Combine(conn.RegionScene.PhysicsScene, offset, Vector3.Zero); 371 scene.PhysicsScene.Combine(conn.RegionScene.PhysicsScene, offset, Vector3.Zero);
345 372
346 lock(conn.RegionScene.NorthBorders) 373 lock (conn.RegionScene.NorthBorders)
347 conn.RegionScene.NorthBorders[0].BorderLine.Z += (int)Constants.RegionSize; 374 conn.RegionScene.NorthBorders[0].BorderLine.Z += (int)Constants.RegionSize;
348 lock(conn.RegionScene.EastBorders) 375 lock (conn.RegionScene.EastBorders)
349 conn.RegionScene.EastBorders[0].BorderLine.Y += (int)Constants.RegionSize; 376 conn.RegionScene.EastBorders[0].BorderLine.Y += (int)Constants.RegionSize;
350 lock(conn.RegionScene.WestBorders) 377 lock (conn.RegionScene.WestBorders)
351 conn.RegionScene.WestBorders[0].BorderLine.Y += (int)Constants.RegionSize; 378 conn.RegionScene.WestBorders[0].BorderLine.Y += (int)Constants.RegionSize;
352 lock(scene.SouthBorders) 379 lock (scene.SouthBorders)
353 scene.SouthBorders[0].BorderLine.Z += (int)Constants.RegionSize; //auto teleport south 380 scene.SouthBorders[0].BorderLine.Z += (int)Constants.RegionSize; //auto teleport south
354 381
355 // Reset Terrain.. since terrain normally loads first. 382 // Reset Terrain.. since terrain normally loads first.
@@ -400,32 +427,32 @@ namespace OpenSim.Region.CoreModules.World.Land
400 427
401 conn.RegionScene.PhysicsScene.Combine(null, Vector3.Zero, extents); 428 conn.RegionScene.PhysicsScene.Combine(null, Vector3.Zero, extents);
402 scene.PhysicsScene.Combine(conn.RegionScene.PhysicsScene, offset, Vector3.Zero); 429 scene.PhysicsScene.Combine(conn.RegionScene.PhysicsScene, offset, Vector3.Zero);
403 lock(conn.RegionScene.NorthBorders) 430 lock (conn.RegionScene.NorthBorders)
404 if (conn.RegionScene.NorthBorders.Count == 1)// && 2) 431 if (conn.RegionScene.NorthBorders.Count == 1)// && 2)
405 { 432 {
406 //compound border 433 //compound border
407 // already locked above 434 // already locked above
408 conn.RegionScene.NorthBorders[0].BorderLine.Z += (int)Constants.RegionSize; 435 conn.RegionScene.NorthBorders[0].BorderLine.Z += (int)Constants.RegionSize;
409 436
410 lock(conn.RegionScene.EastBorders) 437 lock (conn.RegionScene.EastBorders)
411 conn.RegionScene.EastBorders[0].BorderLine.Y += (int)Constants.RegionSize; 438 conn.RegionScene.EastBorders[0].BorderLine.Y += (int)Constants.RegionSize;
412 lock(conn.RegionScene.WestBorders) 439 lock (conn.RegionScene.WestBorders)
413 conn.RegionScene.WestBorders[0].BorderLine.Y += (int)Constants.RegionSize; 440 conn.RegionScene.WestBorders[0].BorderLine.Y += (int)Constants.RegionSize;
414 441
415 442
416 443
417 } 444 }
418 lock(scene.SouthBorders) 445 lock (scene.SouthBorders)
419 scene.SouthBorders[0].BorderLine.Z += (int)Constants.RegionSize; //auto teleport south 446 scene.SouthBorders[0].BorderLine.Z += (int)Constants.RegionSize; //auto teleport south
420 447
421 lock(conn.RegionScene.EastBorders) 448 lock (conn.RegionScene.EastBorders)
422 if (conn.RegionScene.EastBorders.Count == 1)// && conn.RegionScene.EastBorders.Count == 2) 449 if (conn.RegionScene.EastBorders.Count == 1)// && conn.RegionScene.EastBorders.Count == 2)
423 { 450 {
424 451
425 conn.RegionScene.EastBorders[0].BorderLine.Z += (int)Constants.RegionSize; 452 conn.RegionScene.EastBorders[0].BorderLine.Z += (int)Constants.RegionSize;
426 lock(conn.RegionScene.NorthBorders) 453 lock (conn.RegionScene.NorthBorders)
427 conn.RegionScene.NorthBorders[0].BorderLine.Y += (int)Constants.RegionSize; 454 conn.RegionScene.NorthBorders[0].BorderLine.Y += (int)Constants.RegionSize;
428 lock(conn.RegionScene.SouthBorders) 455 lock (conn.RegionScene.SouthBorders)
429 conn.RegionScene.SouthBorders[0].BorderLine.Y += (int)Constants.RegionSize; 456 conn.RegionScene.SouthBorders[0].BorderLine.Y += (int)Constants.RegionSize;
430 457
431 458