aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Servers/LoginResponse.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim.Servers/LoginResponse.cs')
-rw-r--r--OpenSim.Servers/LoginResponse.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim.Servers/LoginResponse.cs b/OpenSim.Servers/LoginResponse.cs
index 4b446d2..5169231 100644
--- a/OpenSim.Servers/LoginResponse.cs
+++ b/OpenSim.Servers/LoginResponse.cs
@@ -87,11 +87,16 @@ namespace OpenSim.UserServer
87 private XmlRpcResponse defaultXmlRpcResponse; 87 private XmlRpcResponse defaultXmlRpcResponse;
88 private string defaultTextResponse; 88 private string defaultTextResponse;
89 89
90 public LoginResponse() 90 private uint regionX;
91 private uint regionY;
92
93 public LoginResponse(uint regX, uint regY)
91 { 94 {
92 this.loginFlags = new ArrayList(); 95 this.loginFlags = new ArrayList();
93 this.globalTextures = new ArrayList(); 96 this.globalTextures = new ArrayList();
94 this.SetDefaultValues(); 97 this.SetDefaultValues();
98 regionX = regX;
99 regionY = regY;
95 } // LoginServer 100 } // LoginServer
96 101
97 // This will go away as we replace new-login.dat: 102 // This will go away as we replace new-login.dat:
@@ -197,6 +202,8 @@ namespace OpenSim.UserServer
197 responseData["seconds_since_epoch"] = (Int32)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds; 202 responseData["seconds_since_epoch"] = (Int32)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;
198 responseData["login-flags"] = this.loginFlags; 203 responseData["login-flags"] = this.loginFlags;
199 responseData["global-textures"] = this.globalTextures; 204 responseData["global-textures"] = this.globalTextures;
205 responseData["region_y"] = (Int32)regionY * 256;
206 responseData["region_x"] = (Int32)regionX * 256;
200 207
201 return (this.xmlRpcResponse); 208 return (this.xmlRpcResponse);
202 209