Skip to content

Commit

Permalink
slight improvement to the previous very rare exploit situation
Browse files Browse the repository at this point in the history
  • Loading branch information
jxsl13 committed Mar 20, 2021
1 parent a49abbe commit f596368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/server/gamemodes/zcatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@ void CGameControllerZCATCH::DoTeamChange(class CPlayer *pPlayer, int Team, bool
if (pDominatingPlayer) {
int caughtPlayers = pDominatingPlayer->GetNumTotalCaughtPlayers();
int playersLeftToCatch = pDominatingPlayer->GetPlayersLeftToCatch();
if (1 + caughtPlayers + playersLeftToCatch == MAX_PLAYERS) {
if (1 + caughtPlayers + playersLeftToCatch == MAX_PLAYERS && playersLeftToCatch <= 2) {
// edge case where leaving caught players allow spectators to join,
// be caught, leave and allowing the next spectator to join.
// the exploit can be done until the player has caught up to 15 players in total
Expand Down

0 comments on commit f596368

Please # to comment.