summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-07-25 22:14:18 +0200
committeremkael <emkael@tlen.pl>2019-07-25 22:14:18 +0200
commite46ead9327ab0cbea50668eda3a613b44f776cfa (patch)
tree468c3e0f01086fe46251837f74253620f160a385
parenta371d2bf8c3e03264eda93d74cdf30d50fb3703f (diff)
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 roomHEADmaster
Fixes #56, hopefully
-rw-r--r--Aktywator.txt1
-rw-r--r--Aktywator/Bws.cs6
-rw-r--r--Aktywator/Resources/BuildDate.txt2
3 files changed, 8 insertions, 1 deletions
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