Skip to content

Commit 4055e50

Browse files
committed
Changed Debug 'summary' to only show connected duration if connected
1 parent a5bfeb9 commit 4055e50

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

world_debug.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -978,8 +978,11 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
978978
Note (ts.Format ("Client running for: %Dd %Hh %Mm %Ss"));
979979
ts = CTime::GetCurrentTime() - m_whenWorldStarted;
980980
Note (ts.Format ("World opened for: %Dd %Hh %Mm %Ss"));
981-
ts = CTime::GetCurrentTime() - m_tConnectTime;
982-
Note (ts.Format ("World connected for: %Dd %Hh %Mm %Ss"));
981+
if (m_iConnectPhase == eConnectConnectedToMud)
982+
{
983+
ts = CTime::GetCurrentTime() - m_tConnectTime;
984+
Note (ts.Format ("World connected for: %Dd %Hh %Mm %Ss"));
985+
}
983986

984987
// work out operating system
985988

0 commit comments

Comments
 (0)