mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 10:46:00 +08:00
varregion: many replacements of in-place arithmetic with calls to
the Util functions for converting world addresses to region addresses and converting region handles to locations.
This commit is contained in:
@@ -336,6 +336,7 @@ namespace OpenSim.Framework
|
||||
// Regions are identified with a 'handle' made up of its region coordinates packed into a ulong.
|
||||
// Several places rely on the ability to extract a region's location from its handle.
|
||||
// Note the location is in 'world coordinates' (see below).
|
||||
// Region handles are based on the lowest coordinate of the region so trim the passed x,y to be the regions 0,0.
|
||||
public static ulong RegionWorldLocToHandle(uint X, uint Y)
|
||||
{
|
||||
return Utils.UIntsToLong(X, Y);
|
||||
|
||||
Reference in New Issue
Block a user