mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
First pass at the heart surgery for grid services. Compiles and runs minimally. A few bugs to catch now.
This commit is contained in:
@@ -35,6 +35,7 @@ using OpenMetaverse;
|
||||
using OpenSim.Framework;
|
||||
using OpenSim.Region.Framework.Interfaces;
|
||||
using OpenSim.Region.Framework.Scenes;
|
||||
using GridRegion = OpenSim.Services.Interfaces.GridRegion;
|
||||
|
||||
namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
|
||||
{
|
||||
@@ -171,7 +172,10 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
|
||||
{
|
||||
// TODO this is the old messaging-server protocol; only the regionHandle is available.
|
||||
// Fetch region-info to get the id
|
||||
RegionInfo regionInfo = m_initialScene.RequestNeighbouringRegionInfo(info.regionHandle);
|
||||
uint x = 0, y = 0;
|
||||
Utils.LongToUInts(info.regionHandle, out x, out y);
|
||||
GridRegion regionInfo = m_initialScene.GridService.GetRegionByPosition(m_initialScene.RegionInfo.ScopeID,
|
||||
(int)x, (int)y);
|
||||
regionID = regionInfo.RegionID;
|
||||
}
|
||||
result[indices[i]] = new PresenceInfo(uuids[i], regionID);
|
||||
|
||||
Reference in New Issue
Block a user