diff options
author | tkimia <tkimia@purdue.edu> | 2014-04-06 21:10:46 -0400 |
---|---|---|
committer | tkimia <tkimia@purdue.edu> | 2014-04-06 21:10:46 -0400 |
commit | 0f982ba511d4f38322f69a6aaed768181b4e2852 (patch) | |
tree | dc1c0c5ad74a1a08cf13074aff48bdf03d25ee11 /app/models/tournament.rb | |
parent | f85943114dba527a1f87abb03229553472f57c0c (diff) |
some more graphics
Diffstat (limited to 'app/models/tournament.rb')
-rw-r--r-- | app/models/tournament.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/tournament.rb b/app/models/tournament.rb index 0029de7..859518c 100644 --- a/app/models/tournament.rb +++ b/app/models/tournament.rb @@ -38,7 +38,7 @@ class Tournament < ActiveRecord::Base #create a new team in the current match self.matches[match_num].teams.push(Team.create(users: players)) #if the match is full, move to the next match, otherwise move to the next team - if (team_num != 0 and team_num % max_teams_per_match == 0) + if (team_num > max_teams_per_match) match_num -= 1 team_num = 0 else |