aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorTeravus Ovares2008-03-18 03:09:38 +0000
committerTeravus Ovares2008-03-18 03:09:38 +0000
commit4e30f862af218de783552ffc2ca68ae8a11509c5 (patch)
tree7d8d07d08a16f6407646f6c66516e9df99b7ba84 /OpenSim/Region
parentLast position will be stored in the DB on logout, and the avatar can continue... (diff)
downloadopensim-SC_OLD-4e30f862af218de783552ffc2ca68ae8a11509c5.zip
opensim-SC_OLD-4e30f862af218de783552ffc2ca68ae8a11509c5.tar.gz
opensim-SC_OLD-4e30f862af218de783552ffc2ca68ae8a11509c5.tar.bz2
opensim-SC_OLD-4e30f862af218de783552ffc2ca68ae8a11509c5.tar.xz
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.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Communications/Local/LocalLoginService.cs18
1 files changed, 16 insertions, 2 deletions
diff --git a/OpenSim/Region/Communications/Local/LocalLoginService.cs b/OpenSim/Region/Communications/Local/LocalLoginService.cs
index d7b3a58..6088890 100644
--- a/OpenSim/Region/Communications/Local/LocalLoginService.cs
+++ b/OpenSim/Region/Communications/Local/LocalLoginService.cs
@@ -123,9 +123,23 @@ namespace OpenSim.Region.Communications.Local
123 } 123 }
124 } 124 }
125 125
126 public override void CustomiseResponse(LoginResponse response, UserProfileData theUser) 126 public override void CustomiseResponse(LoginResponse response, UserProfileData theUser, string startLocationRequest)
127 { 127 {
128 ulong currentRegion = theUser.currentAgent.currentHandle; 128 ulong currentRegion = 0;
129 if (startLocationRequest == "last")
130 {
131 currentRegion = theUser.currentAgent.currentHandle;
132 }
133 else if (startLocationRequest == "home")
134 {
135 currentRegion = theUser.homeRegion;
136 }
137 else
138 {
139 // TODO: Parse string in the following format: 'uri:RegionName&X&Y&Z'
140 currentRegion = theUser.currentAgent.currentHandle;
141 }
142
129 RegionInfo reg = m_Parent.GridService.RequestNeighbourInfo(currentRegion); 143 RegionInfo reg = m_Parent.GridService.RequestNeighbourInfo(currentRegion);
130 144
131 if (reg != null) 145 if (reg != null)