mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Log join type
This commit is contained in:
parent
339070b8d2
commit
f327e5bc42
|
@ -237,7 +237,7 @@ public:
|
|||
|
||||
virtual char *GetMapName() = 0;
|
||||
|
||||
virtual bool IsSixup(int ClientID) = 0;
|
||||
virtual bool IsSixup(int ClientID) const = 0;
|
||||
};
|
||||
|
||||
class IGameServer : public IInterface
|
||||
|
|
|
@ -1446,7 +1446,7 @@ void CServer::ProcessClientPacket(CNetChunk *pPacket)
|
|||
net_addr_str(m_NetServer.ClientAddr(ClientID), aAddrStr, sizeof(aAddrStr), true);
|
||||
|
||||
char aBuf[256];
|
||||
str_format(aBuf, sizeof(aBuf), "player has entered the game. ClientID=%d addr=<{%s}>", ClientID, aAddrStr);
|
||||
str_format(aBuf, sizeof(aBuf), "player has entered the game. ClientID=%d addr=<{%s}> sixup=%d", ClientID, aAddrStr, IsSixup(ClientID));
|
||||
Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "server", aBuf);
|
||||
m_aClients[ClientID].m_State = CClient::STATE_INGAME;
|
||||
if(IsSixup(ClientID))
|
||||
|
|
|
@ -446,7 +446,7 @@ public:
|
|||
bool ErrorShutdown() const { return m_aErrorShutdownReason[0] != 0; }
|
||||
void SetErrorShutdown(const char *pReason);
|
||||
|
||||
bool IsSixup(int ClientID) { return m_aClients[ClientID].m_Sixup; }
|
||||
bool IsSixup(int ClientID) const { return m_aClients[ClientID].m_Sixup; }
|
||||
|
||||
#ifdef CONF_FAMILY_UNIX
|
||||
enum CONN_LOGGING_CMD
|
||||
|
|
Loading…
Reference in a new issue