Fixed compiler warnings.

This commit is contained in:
jeefo 2020-11-23 10:48:44 +03:00
commit b75e1b8a23
9 changed files with 22 additions and 17 deletions

View file

@ -770,7 +770,11 @@ float BotManager::getAverageTeamKPD (bool calcForBots) {
}
auto bot = bots[client.ent];
if ((calcForBots && bot) || (!calcForBots && !bot)) {
if (calcForBots && bot) {
calc.first += client.ent->v.frags;
calc.second++;
}
else if (!calcForBots && !bot) {
calc.first += client.ent->v.frags;
calc.second++;
}