MCPcopy Create free account
hub / github.com/assaultcube/AC / findcn

Function findcn

source/src/clientgame.cpp:1651–1660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1649
1650
1651void findcn(char *name)
1652{
1653 loopv(players) if(players[i] && !strcmp(name, players[i]->name))
1654 {
1655 intret(players[i]->clientnum);
1656 return;
1657 }
1658 if(!strcmp(name, player1->name)) { intret(player1->clientnum); return; }
1659 intret(-1);
1660}
1661COMMAND(findcn, "s");
1662
1663int sessionid = 0;

Callers

nothing calls this directly

Calls 2

intretFunction · 0.85
loopvFunction · 0.70

Tested by

no test coverage detected