mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
varregion: many more updates removing the constant RegionSize and replacing
with a passed region size. This time in the map code and grid services code.
This commit is contained in:
@@ -342,6 +342,11 @@ namespace OpenSim.Framework
|
||||
return Utils.UIntsToLong(X, Y);
|
||||
}
|
||||
|
||||
public static ulong RegionLocToHandle(uint X, uint Y)
|
||||
{
|
||||
return Utils.UIntsToLong(Util.RegionToWorldLoc(X), Util.RegionToWorldLoc(Y));
|
||||
}
|
||||
|
||||
public static void RegionHandleToWorldLoc(ulong handle, out uint X, out uint Y)
|
||||
{
|
||||
X = (uint)(handle >> 32);
|
||||
|
||||
Reference in New Issue
Block a user