Skip to content

Commit

Permalink
CTFSwapTeams also swaps matchmode captains (issue #80).
Browse files Browse the repository at this point in the history
  • Loading branch information
Raptor007 committed May 19, 2020
1 parent 745bf3f commit 907e078
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/a_ctf.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,11 @@ void CTFSwapTeams()
ctfgame.team1 = ctfgame.team2;
ctfgame.team2 = i;

// Swap matchmode team captains.
ent = teams[TEAM1].captain;
teams[TEAM1].captain = teams[TEAM2].captain;
teams[TEAM2].captain = ent;

teams_changed = true;
}

Expand Down

0 comments on commit 907e078

Please sign in to comment.