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.txt | 1 + Aktywator/Bws.cs | 6 ++++++ Aktywator/Resources/BuildDate.txt | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Aktywator.txt b/Aktywator.txt index 296a24c..9609a52 100644 --- a/Aktywator.txt +++ b/Aktywator.txt @@ -5,6 +5,7 @@ Aktywator 1.16 ??.??.???? [mkl] * wersja z poprawkami błędów + - poprawne wyświetlanie nazwisk znanych line-upów w teamach w pokoju zamkniętym Aktywator 1.1.5 17.11.2018 [mkl] 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