minor: remove hardcoded region numbers with the region size constant and a currently hardcoded offset

bulletsim
Justin Clark-Casey (justincc) 2011-08-24 21:18:11 +01:00
parent ccf07f6ae3
commit 0e0d40c810
1 changed files with 2 additions and 2 deletions

View File

@ -1880,11 +1880,11 @@ namespace OpenSim.Region.Framework.Scenes
{
Vector3 inventoryStoredPosition = new Vector3
(((grp.AbsolutePosition.X > (int)Constants.RegionSize)
? 250
? Constants.RegionSize - 6
: grp.AbsolutePosition.X)
,
(grp.AbsolutePosition.Y > (int)Constants.RegionSize)
? 250
? Constants.RegionSize - 6
: grp.AbsolutePosition.Y,
grp.AbsolutePosition.Z);