mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge #2333
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:
commit
3ba2d3a867
|
@ -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