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

Function calcscores

source/src/server.cpp:2165–2178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2163}
2164
2165int calcscores()
2166{
2167 int sum = 0;
2168 int vitasum = calcscoresvita();
2169 if((vitasum / numplayers()) > shuffleskillthreshold)
2170 {
2171 sum = vitasum;
2172 }
2173 else
2174 {
2175 sum = calcscoresmatch(); // indicate match skill used by sum<=0
2176 }
2177 return sum;
2178}
2179
2180vector<int> shuffle;
2181

Callers 3

updateclientteamFunction · 0.85
shuffleteamsFunction · 0.85
refillteamsFunction · 0.85

Calls 3

calcscoresvitaFunction · 0.85
numplayersFunction · 0.85
calcscoresmatchFunction · 0.85

Tested by

no test coverage detected