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:
Teravus Ovares
2008-03-18 03:09:38 +00:00
parent 040a887b9c
commit 4e30f862af
3 changed files with 60 additions and 10 deletions

View File

@@ -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)