mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Building on Joha's update...
* Server now listens to the client's start location request for 'home' or 'last' and sends the user to the home location or the last location.
This commit is contained in:
@@ -123,9 +123,23 @@ namespace OpenSim.Region.Communications.Local
|
||||
}
|
||||
}
|
||||
|
||||
public override void CustomiseResponse(LoginResponse response, UserProfileData theUser)
|
||||
public override void CustomiseResponse(LoginResponse response, UserProfileData theUser, string startLocationRequest)
|
||||
{
|
||||
ulong currentRegion = theUser.currentAgent.currentHandle;
|
||||
ulong currentRegion = 0;
|
||||
if (startLocationRequest == "last")
|
||||
{
|
||||
currentRegion = theUser.currentAgent.currentHandle;
|
||||
}
|
||||
else if (startLocationRequest == "home")
|
||||
{
|
||||
currentRegion = theUser.homeRegion;
|
||||
}
|
||||
else
|
||||
{
|
||||
// TODO: Parse string in the following format: 'uri:RegionName&X&Y&Z'
|
||||
currentRegion = theUser.currentAgent.currentHandle;
|
||||
}
|
||||
|
||||
RegionInfo reg = m_Parent.GridService.RequestNeighbourInfo(currentRegion);
|
||||
|
||||
if (reg != null)
|
||||
|
||||
Reference in New Issue
Block a user