4e22391
M Cloudtide, M Dash Dummy, M drg5, M Dizzy - ddnet-mapsISqlData
to avoid synchronizing access to server variables{
int Empty = -1;
for(int i = 0; i < MAX_CLIENTS; i++)
{
if(Server()->ClientSlotEmpty(i))
{
Empty = i;
break;
}
}
CNetMsg_Sv_Chat Msg;
Msg.m_Team = 0;
Msg.m_ClientId = Empty;
Msg.m_pMessage = "Do you know someone who uses a bot? Please report them to the moderators.";
m_apPlayers[ClientId]->m_EligibleForFinishCheck = time_get();
Server()->SendPackMsg(&Msg, MSGFLAG_VITAL | MSGFLAG_NORECORD, ClientId);
}
{
int Empty = -1;
for(int i = 0; i < MAX_CLIENTS; i++)
{
if(Server()->ClientSlotEmpty(i))
{
Empty = i;
break;
}
}
CNetMsg_Sv_Chat Msg;
Msg.m_Team = 0;
Msg.m_ClientId = Empty;
Msg.m_pMessage = "Do you know someone who uses a bot? Please report them to the moderators.";
m_apPlayers[ClientId]->m_EligibleForFinishCheck = time_get();
Server()->SendPackMsg(&Msg, MSGFLAG_VITAL | MSGFLAG_NORECORD, ClientId);
}