aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Servers/LoginResponse.cs
diff options
context:
space:
mode:
authorMW2007-05-08 16:40:20 +0000
committerMW2007-05-08 16:40:20 +0000
commit26002559c0e8ae52e527a1b034da0b9e5601ea93 (patch)
tree2e6ecff93306140ffce9e609ac7234b26c08dfad /OpenSim.Servers/LoginResponse.cs
parent* added guid to logname to avoid file sharing on multiple instances on same host (diff)
downloadopensim-SC_OLD-26002559c0e8ae52e527a1b034da0b9e5601ea93.zip
opensim-SC_OLD-26002559c0e8ae52e527a1b034da0b9e5601ea93.tar.gz
opensim-SC_OLD-26002559c0e8ae52e527a1b034da0b9e5601ea93.tar.bz2
opensim-SC_OLD-26002559c0e8ae52e527a1b034da0b9e5601ea93.tar.xz
Fixed bug where client crashes on login if in sandbox mode and region is set to anything other than 997,996
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