1

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 smile

2

Re: again 64slots

You should really try and experiment more with programming languages (C++) before looking into the Teeworlds code.

If you think you're really comfortable with that, you should look in the files for the definition of that function that you don't understand. That's how most people do it.

Not Luck, Just Magic.

3

Re: again 64slots

Current mod with 64 players support have a problem with votes... and troll players knows it.