Fixed compiler warnings.
This commit is contained in:
parent
74f1ab866b
commit
b75e1b8a23
9 changed files with 22 additions and 17 deletions
|
|
@ -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++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue