add 1 to global Y posn when exceeding 255 local Y. Was adding 1 to global X. Good eyes makomk

zircon^2
morphw 2007-05-18 00:43:43 +00:00
parent 8378e72a9f
commit a947b70575
1 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ namespace OpenSim
} }
if (avatarpos.Y > 255) if (avatarpos.Y > 255)
{ {
neighbourx += 1; neighboury += 1;
newpos.Y = 1; newpos.Y = 1;
} }
OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "SimClient.cs:CrossSimBorder() - Crossing border to neighbouring sim at [" + neighbourx.ToString() + "," + neighboury.ToString() + "]"); OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "SimClient.cs:CrossSimBorder() - Crossing border to neighbouring sim at [" + neighbourx.ToString() + "," + neighboury.ToString() + "]");
@ -153,5 +153,5 @@ namespace OpenSim
} }
} }
} }
} }
} }