Patch login reply exploding in a fireball
This commit is contained in:
parent
dbc2371fde
commit
9f2fcdedda
1 changed files with 31 additions and 27 deletions
|
|
@ -463,7 +463,12 @@ namespace OpenMetaverse
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Home
|
// Home
|
||||||
|
HomeRegion = 0;
|
||||||
|
HomePosition = Vector3.Zero;
|
||||||
|
HomeLookAt = Vector3.Zero;
|
||||||
if (reply.ContainsKey("home"))
|
if (reply.ContainsKey("home"))
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
OSD osdHome = OSDParser.DeserializeLLSDNotation(reply["home"].ToString());
|
OSD osdHome = OSDParser.DeserializeLLSDNotation(reply["home"].ToString());
|
||||||
|
|
||||||
|
|
@ -486,11 +491,10 @@ namespace OpenMetaverse
|
||||||
HomeLookAt = ParseVector3("look_at", home);
|
HomeLookAt = ParseVector3("look_at", home);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
HomeRegion = 0;
|
Logger.Log("Unable to unpack home location: " + e.Message, Helpers.LogLevel.Warning);
|
||||||
HomePosition = Vector3.Zero;
|
}
|
||||||
HomeLookAt = Vector3.Zero;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CircuitCode = (int)ParseUInt("circuit_code", reply);
|
CircuitCode = (int)ParseUInt("circuit_code", reply);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue