From e46ead9327ab0cbea50668eda3a613b44f776cfa Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 25 Jul 2019 22:14:18 +0200 Subject: Participant number mapping made unambigous when names in teams are displayed - so it's possible to displayed different texts, e.g. line-up names in closed room Fixes #56, hopefully --- Aktywator/Bws.cs | 6 ++++++ Aktywator/Resources/BuildDate.txt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'Aktywator') 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) diff --git a/Aktywator/Resources/BuildDate.txt b/Aktywator/Resources/BuildDate.txt index 48f4768..c02138d 100644 --- a/Aktywator/Resources/BuildDate.txt +++ b/Aktywator/Resources/BuildDate.txt @@ -1 +1 @@ -2019-07-24 +2019-07-25 -- cgit v1.2.3