summaryrefslogtreecommitdiff
path: root/Aktywator/TeamyTournament.cs
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-02-04 15:47:16 +0100
committeremkael <emkael@tlen.pl>2018-02-04 15:47:16 +0100
commit3a7b77ef81cc80e29d4f3f06a0bb66752e79c936 (patch)
tree1c0a2ce06509fc4f23ee1d2b7d387d41317d091b /Aktywator/TeamyTournament.cs
parent3ffed804b0db02cbbc365c3fcc7ebd6336fd8247 (diff)
Proper team score suffix for imps only tournament
Diffstat (limited to 'Aktywator/TeamyTournament.cs')
-rw-r--r--Aktywator/TeamyTournament.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/Aktywator/TeamyTournament.cs b/Aktywator/TeamyTournament.cs
index 8da063d..01034b5 100644
--- a/Aktywator/TeamyTournament.cs
+++ b/Aktywator/TeamyTournament.cs
@@ -91,5 +91,14 @@ namespace Aktywator
finished.Close();
return segment;
}
+
+ internal String getPointsUnit()
+ {
+ MySqlDataReader points = this.mysql.select("SELECT imponly FROM admin");
+ points.Read();
+ int unit = points.GetInt32(0);
+ points.Close();
+ return (unit < 0) ? "IMP" : "VP";
+ }
}
}