Skip to content

Commit

Permalink
Merge 4404f3b into b95020b
Browse files Browse the repository at this point in the history
  • Loading branch information
godwhoa committed Jul 29, 2018
2 parents b95020b + 4404f3b commit 55a2ec2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions piqueserver/game_modes/infiltration.py
Expand Up @@ -109,8 +109,9 @@ def on_team_join(self, team):
attacker_count = attacker_count or ATTACKER_TO_DEFENDER_RATIO
if ((attacker_count > defender_count and team is attacker) or
(attacker_count < defender_count and team is defender)):
self.send_chat(S_TEAM_FULL)
return False
if abs(attacker_count - defender_count) > ATTACKER_TO_DEFENDER_RATIO:
self.send_chat(S_TEAM_FULL)
return False
return connection.on_team_join(self, team)

def on_team_changed(self, old_team):
Expand Down

0 comments on commit 55a2ec2

Please sign in to comment.