Fixed ignorance of quota maintaining if no bots on kicking team.

Minor refactoring.
This commit is contained in:
Dmitry 2019-05-11 23:55:33 +03:00 committed by jeefo
commit 78b2cb968a
4 changed files with 40 additions and 27 deletions

View file

@ -1064,7 +1064,7 @@ void Engine::processMessages (void *ptr) {
break;
case 1:
if (playerIndex >= 0 && playerIndex <= maxClients ()) {
if (playerIndex > 0 && playerIndex <= maxClients ()) {
int team = TEAM_UNASSIGNED;
if (strVal[0] == 'U' && strVal[1] == 'N') {
@ -1192,7 +1192,7 @@ template <typename S, typename M> bool LightMeasure::recursiveLightPoint (const
}
// blow it off if it doesn't split the plane...
if ((back < 0.0f) == side) {
if ((back < 0.0f) == !!side) {
return false; // didn't hit anything
}