Fixes flying glitch (hang) when crossing region boundaries

afrisby
Brian McBee 2007-08-02 21:34:45 +00:00
parent cd2a411afe
commit 3e4d677c77
1 changed files with 4 additions and 4 deletions

View File

@ -576,22 +576,22 @@ namespace OpenSim.Region.Environment.Scenes
uint neighbourx = this.m_regionInfo.RegionLocX;
uint neighboury = this.m_regionInfo.RegionLocY;
if (pos.X < 2)
if (pos.X < 3)
{
neighbourx -= 1;
newpos.X = 254;
}
if (pos.X > 253)
if (pos.X > 252)
{
neighbourx += 1;
newpos.X = 1;
}
if (pos.Y < 2)
if (pos.Y < 3)
{
neighboury -= 1;
newpos.Y = 254;
}
if (pos.Y > 253)
if (pos.Y > 252)
{
neighboury += 1;
newpos.Y = 1;