Topic: again 64slots
Can somebody explain code for 64slots in DDraceNetwork's source.
I cant use it because i dont understand the main idea of this code.
for example:
I dont understand:
bool Translate(int& target, int client)
{
CClientInfo info;
GetClientInfo(client, &info);
if (info.m_ClientVersion >= VERSION_DDNET_OLD)
return true;
int* map = GetIdMap(client);
bool found = false;
for (int i = 0; i < VANILLA_MAX_CLIENTS; i++)
{
if (target == map[i])
{
target = i;
found = true;
break;
}
}
return found;
}
array map (what does it do?)
func void CGameWorld::UpdatePlayerMaps() ??
what does it do?
Ty for explain