2333: Log join type r=def- a=Learath2

This should let us get a quick idea of how many people are actually using the bridge.

Also adds the const qualification which could enable more optimization.

Co-authored-by: Learath <learath2@gmail.com>
This commit is contained in:
bors[bot] 2020-06-23 15:36:30 +00:00 committed by GitHub
commit 3ba2d3a867
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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