Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
KJeff01 committed Mar 25, 2023
1 parent d0177ac commit 8a446db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/multiint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1576,15 +1576,14 @@ static int getPlayerTeam(int i)
*/
static int allPlayersOnSameTeam(int except)
{
int minTeam = MAX_PLAYERS, maxTeam = 0, numPlayers = 0;
int minTeam = MAX_PLAYERS, maxTeam = 0;
for (unsigned i = 0; i < game.maxPlayers; ++i)
{
if (i != except && (!NetPlay.players[i].isSpectator) && (NetPlay.players[i].allocated || NetPlay.players[i].ai >= 0))
{
int team = getPlayerTeam(i);
minTeam = std::min(minTeam, team);
maxTeam = std::max(maxTeam, team);
++numPlayers;
}
}
if (minTeam == MAX_PLAYERS || minTeam == maxTeam)
Expand Down

0 comments on commit 8a446db

Please sign in to comment.