mirror of
https://github.com/opensim/opensim.git
synced 2026-05-27 12:26:01 +08:00
varregion: elimination of Constants.RegionSize from all over OpenSimulator.
Routines in Util to compute region world coordinates from region coordinates as well as the conversion to and from region handles. These routines have replaced a lot of math scattered throughout the simulator. Should be no functional changes.
This commit is contained in:
@@ -64,12 +64,12 @@ namespace OpenSim.Region.RegionCombinerModule
|
||||
/// <summary>
|
||||
/// The X meters position of this connection.
|
||||
/// </summary>
|
||||
public uint PosX { get { return X * Constants.RegionSize; } }
|
||||
public uint PosX { get { return Util.RegionToWorldLoc(X); } }
|
||||
|
||||
/// <summary>
|
||||
/// The Y meters co-ordinate of this connection.
|
||||
/// </summary>
|
||||
public uint PosY { get { return Y * Constants.RegionSize; } }
|
||||
public uint PosY { get { return Util.RegionToWorldLoc(Y); } }
|
||||
|
||||
/// <summary>
|
||||
/// The size of the megaregion in meters.
|
||||
|
||||
Reference in New Issue
Block a user