In CheckTeamLeader, make sure to only set one client as team leader. Reported by Tobias Kuehnhammer.

This commit is contained in:
Zack Middleton 2012-05-20 21:22:11 +00:00
parent f8c421025e
commit 22ecd68cf2

View file

@ -1644,6 +1644,8 @@ void CheckTeamLeader( int team ) {
break;
}
}
if (i >= level.maxclients) {
for ( i = 0 ; i < level.maxclients ; i++ ) {
if (level.clients[i].sess.sessionTeam != team)
continue;
@ -1651,6 +1653,7 @@ void CheckTeamLeader( int team ) {
break;
}
}
}
}
/*