[radegast] r1198 committed - Handle the case that during reconnection IsLoggedOn == true and Curren...

0 views
Skip to first unread message

rade...@googlecode.com

unread,
Feb 12, 2012, 6:31:26 PM2/12/12
to radega...@googlegroups.com
Revision: 1198
Author: logicmoo
Date: Sun Feb 12 15:31:06 2012
Log: Handle the case that during reconnection IsLoggedOn == true and
CurrentSim == null.
http://code.google.com/p/radegast/source/detail?r=1198

Modified:
/trunk/Radegast/GUI/Dialogs/MainForm.cs

=======================================
--- /trunk/Radegast/GUI/Dialogs/MainForm.cs Sun Jan 1 14:58:33 2012
+++ /trunk/Radegast/GUI/Dialogs/MainForm.cs Sun Feb 12 15:31:06 2012
@@ -469,8 +469,9 @@
tlblMoneyBalance.Text = client.Self.Balance.ToString();
icoHealth.Text = client.Self.Health.ToString() + "%";

+ var cs = client.Network.CurrentSim;
tlblRegionInfo.Text =
- client.Network.CurrentSim.Name +
+ (cs == null ? "No region" : cs.Name) +
" (" +
Math.Floor(client.Self.SimPosition.X).ToString() + ", " +
Math.Floor(client.Self.SimPosition.Y).ToString()
+ ", " +
Math.Floor(client.Self.SimPosition.Z).ToString() + ")";

Reply all
Reply to author
Forward
0 new messages