summaryrefslogtreecommitdiff
path: root/app/models/tournament.rb
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-04-06 21:10:46 -0400
committertkimia <tkimia@purdue.edu>2014-04-06 21:10:46 -0400
commit0f982ba511d4f38322f69a6aaed768181b4e2852 (patch)
treedc1c0c5ad74a1a08cf13074aff48bdf03d25ee11 /app/models/tournament.rb
parentf85943114dba527a1f87abb03229553472f57c0c (diff)
some more graphics
Diffstat (limited to 'app/models/tournament.rb')
-rw-r--r--app/models/tournament.rb2
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