mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
* Added sessionID to IGridUserService.SetLastPosition(), as some connectors will want to track position against sessionID instead of userID
* Updated SimianPresenceServiceConnector to use the new LoggedOut/SetHome/etc methods and only update session position on parcel crossing
This commit is contained in:
@@ -156,6 +156,7 @@ namespace OpenSim.Server.Handlers.GridUser
|
||||
byte[] SetPosition(Dictionary<string, object> request)
|
||||
{
|
||||
string user = string.Empty;
|
||||
UUID sessionID = UUID.Zero;
|
||||
UUID region = UUID.Zero;
|
||||
Vector3 position = new Vector3(128, 128, 70);
|
||||
Vector3 look = Vector3.Zero;
|
||||
@@ -166,7 +167,7 @@ namespace OpenSim.Server.Handlers.GridUser
|
||||
if (!UnpackArgs(request, out user, out region, out position, out look))
|
||||
return FailureResult();
|
||||
|
||||
if (m_GridUserService.SetLastPosition(user, region, position, look))
|
||||
if (m_GridUserService.SetLastPosition(user, sessionID, region, position, look))
|
||||
return SuccessResult();
|
||||
|
||||
return FailureResult();
|
||||
|
||||
Reference in New Issue
Block a user