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

Function getclient

source/src/clientgame.cpp:1058–1062  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1056}
1057
1058playerent *getclient(int cn) // ensure valid entity
1059{
1060 if(cn == player1->clientnum) return player1;
1061 return players.inrange(cn) ? players[cn] : NULL;
1062}
1063
1064void initclient()
1065{

Callers 14

parsepositionsFunction · 0.85
parsemessagesFunction · 0.85
pmFunction · 0.85
gl_drawhudFunction · 0.85
flagstolenFunction · 0.85
ignoreFunction · 0.85
muteplayerFunction · 0.85
clientgame.cppFile · 0.85
playerinfoFunction · 0.85
dodamageFunction · 0.85
pstat_weapFunction · 0.85
flagmsgFunction · 0.85

Calls 1

inrangeMethod · 0.80

Tested by

no test coverage detected