mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Fixes flying glitch (hang) when crossing region boundaries
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user