decreased the length of built in client names

This commit is contained in:
oy 2011-04-16 18:41:44 +02:00
parent 726bbbbdb0
commit 73bc6afb67

View file

@ -355,11 +355,11 @@ int *CServer::LatestInput(int ClientID, int *size)
const char *CServer::ClientName(int ClientID) const char *CServer::ClientName(int ClientID)
{ {
if(ClientID < 0 || ClientID >= MAX_CLIENTS || m_aClients[ClientID].m_State == CServer::CClient::STATE_EMPTY) if(ClientID < 0 || ClientID >= MAX_CLIENTS || m_aClients[ClientID].m_State == CServer::CClient::STATE_EMPTY)
return "(invalid client)"; return "(invalid)";
if(m_aClients[ClientID].m_State == CServer::CClient::STATE_INGAME) if(m_aClients[ClientID].m_State == CServer::CClient::STATE_INGAME)
return m_aClients[ClientID].m_aName; return m_aClients[ClientID].m_aName;
else else
return "(connecting client)"; return "(connecting)";
} }