summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Zimniewicz <michzimny@users.noreply.github.com>2019-07-26 16:37:55 +0200
committerGitHub <noreply@github.com>2019-07-26 16:37:55 +0200
commit970f83f4cc070bdb3e589eb30fc368e5bf0e4aaa (patch)
tree468c3e0f01086fe46251837f74253620f160a385
parent95e5a94eb697414eb0a8b905c193f682a7cfc0c5 (diff)
parente46ead9327ab0cbea50668eda3a613b44f776cfa (diff)
Merge pull request #58 from emkael/masterHEADmaster
Participant number mapping made unambigous...
-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