Log join type

This commit is contained in:
Learath 2020-06-23 18:30:57 +03:00
parent 339070b8d2
commit f327e5bc42
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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))

View file

@ -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