Merge branch 'develop' of github.com:Vocaluxe/Vocaluxe into develop

This commit is contained in:
Florian Kuepper committed 2012-12-24 01:57:25 +01:00
commit 8ff5d5133a
5 files changed
+31 -8

No files matched your search

+13 -2
View File
@@ -77,8 +77,13 @@ namespace Vocaluxe.PartyModes
for (int i = 0; i < NumPlayed.Count; i++)
{
if (NumPlayed[i] == 0 || NumPlayed[i] < max)
result.Add(i);
if (RoundIndex == 0 || NumPlayed[i] < max)
{
if (RoundIndex == 0 || RoundIndex > 0 && NumPlayed[i] < max && !Rounds[RoundIndex - 1].IsAvailable(i))
result.Add(i);
else if (NumPlayed[i] < max)
other.Add(i);
}
else
{
if (RoundIndex > 0)
@@ -110,6 +115,12 @@ namespace Vocaluxe.PartyModes
last.RemoveAt(r);
}
while (result.Count > num)
{
int n = result.Count;
int r = _Rand.Next(n);
result.RemoveAt(r);
}
result.Sort();
return result;