varregion: remove scattered use of Constants.RegionSize by having routines reference RegionInfo.RegionWorldLoc?.

This commit is contained in:
Robert Adams
2013-10-02 16:57:02 -07:00
parent 9b150194f6
commit 25ae59b9eb
5 changed files with 10 additions and 15 deletions

View File

@@ -213,8 +213,8 @@ namespace OpenSim.Region.CoreModules.Scripting.EmailModules
if (part != null)
{
ObjectRegionName = s.RegionInfo.RegionName;
uint localX = (s.RegionInfo.LegacyRegionLocX * (int)Constants.RegionSize);
uint localY = (s.RegionInfo.LegacyRegionLocY * (int)Constants.RegionSize);
uint localX = s.RegionInfo.RegionWorldLocX;
uint localY = s.RegionInfo.RegionWorldLocY;
ObjectRegionName = ObjectRegionName + " (" + localX + ", " + localY + ")";
return part;
}