mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
decreased the length of built in client names
This commit is contained in:
parent
726bbbbdb0
commit
73bc6afb67
|
@ -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)";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue