Thank you dslake for a patch that:

* fixes mantis #3092: User Server sets agent starting position to passed x/y/x instead of x/y/z
0.6.3-post-fixes
lbsa71 2009-02-07 09:45:56 +00:00
parent de42d85518
commit 4d4402158e
2 changed files with 2 additions and 2 deletions

View File

@ -251,7 +251,7 @@ namespace OpenSim.Grid.UserServer
else else
{ {
theUser.CurrentAgent.Position = new Vector3(float.Parse(uriMatch.Groups["x"].Value), theUser.CurrentAgent.Position = new Vector3(float.Parse(uriMatch.Groups["x"].Value),
float.Parse(uriMatch.Groups["y"].Value), float.Parse(uriMatch.Groups["x"].Value)); float.Parse(uriMatch.Groups["y"].Value), float.Parse(uriMatch.Groups["z"].Value));
} }
} }
response.LookAt = "[r0,r1,r0]"; response.LookAt = "[r0,r1,r0]";

View File

@ -210,7 +210,7 @@ namespace OpenSim.Region.Communications.Local
else else
{ {
theUser.CurrentAgent.Position = new Vector3(float.Parse(uriMatch.Groups["x"].Value), theUser.CurrentAgent.Position = new Vector3(float.Parse(uriMatch.Groups["x"].Value),
float.Parse(uriMatch.Groups["y"].Value), float.Parse(uriMatch.Groups["x"].Value)); float.Parse(uriMatch.Groups["y"].Value), float.Parse(uriMatch.Groups["z"].Value));
} }
} }
response.LookAt = "[r0,r1,r0]"; response.LookAt = "[r0,r1,r0]";