aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorBrian McBee2007-08-02 21:34:45 +0000
committerBrian McBee2007-08-02 21:34:45 +0000
commit3e4d677c77b244f452ab1c4e2d65bd5675915300 (patch)
tree86e0600c2fed8f65b1c91a59c8143d1723bc0501
parent* Terrain load variables now work. HiRAW exporter works wonderfully. :D (diff)
downloadopensim-SC_OLD-3e4d677c77b244f452ab1c4e2d65bd5675915300.zip
opensim-SC_OLD-3e4d677c77b244f452ab1c4e2d65bd5675915300.tar.gz
opensim-SC_OLD-3e4d677c77b244f452ab1c4e2d65bd5675915300.tar.bz2
opensim-SC_OLD-3e4d677c77b244f452ab1c4e2d65bd5675915300.tar.xz
Fixes flying glitch (hang) when crossing region boundaries
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
index 9638152..7b97080 100644
--- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
@@ -576,22 +576,22 @@ namespace OpenSim.Region.Environment.Scenes
576 uint neighbourx = this.m_regionInfo.RegionLocX; 576 uint neighbourx = this.m_regionInfo.RegionLocX;
577 uint neighboury = this.m_regionInfo.RegionLocY; 577 uint neighboury = this.m_regionInfo.RegionLocY;
578 578
579 if (pos.X < 2) 579 if (pos.X < 3)
580 { 580 {
581 neighbourx -= 1; 581 neighbourx -= 1;
582 newpos.X = 254; 582 newpos.X = 254;
583 } 583 }
584 if (pos.X > 253) 584 if (pos.X > 252)
585 { 585 {
586 neighbourx += 1; 586 neighbourx += 1;
587 newpos.X = 1; 587 newpos.X = 1;
588 } 588 }
589 if (pos.Y < 2) 589 if (pos.Y < 3)
590 { 590 {
591 neighboury -= 1; 591 neighboury -= 1;
592 newpos.Y = 254; 592 newpos.Y = 254;
593 } 593 }
594 if (pos.Y > 253) 594 if (pos.Y > 252)
595 { 595 {
596 neighboury += 1; 596 neighboury += 1;
597 newpos.Y = 1; 597 newpos.Y = 1;