diff --git a/src/engine/server.h b/src/engine/server.h index 8e901d0e2..25be9e6c8 100644 --- a/src/engine/server.h +++ b/src/engine/server.h @@ -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 diff --git a/src/engine/server/server.cpp b/src/engine/server/server.cpp index 5942eee9c..d27b70f8e 100644 --- a/src/engine/server/server.cpp +++ b/src/engine/server/server.cpp @@ -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)) diff --git a/src/engine/server/server.h b/src/engine/server/server.h index 06cd1756f..158553a84 100644 --- a/src/engine/server/server.h +++ b/src/engine/server/server.h @@ -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