diff options
Diffstat (limited to 'Aktywator/Bws.cs')
-rw-r--r-- | Aktywator/Bws.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs index 126a60f..aac223c 100644 --- a/Aktywator/Bws.cs +++ b/Aktywator/Bws.cs @@ -859,6 +859,12 @@ namespace Aktywator s.createField(sql); Setting.save(s.name, s.defaultStr, this, errors); } + if (tournament.type == Tournament.TYPE_TEAMY) + { + // we do this so the names in the closed room are displayed correctly (they're being somehow mapped to participants numbers when preloaded) + sql.query("UPDATE RoundData SET NSPair = NSPair + " + TeamNamesSettings.OpenClosedDiff + " WHERE NSPair < " + TeamNamesSettings.OpenClosedDiff + " AND `Table` > " + SKOK_STOLOW); + sql.query("UPDATE RoundData SET EWPair = EWPair + " + TeamNamesSettings.OpenClosedDiff + " WHERE EWPair < " + TeamNamesSettings.OpenClosedDiff + " AND `Table` > " + SKOK_STOLOW); + } if (interactive) { if (errors.Length > 0) |