fixed num round table visible

This commit is contained in:
Alexander Eckart committed 2012-12-30 17:57:11 +01:00
1 parent 3ffc211571
commit 524852d3c8
1 file changed
+9 -1
@@ -421,6 +421,9 @@ namespace Vocaluxe.PartyModes
int NumPlayerInOneRow = 3;
if (GameState.NumPlayerAtOnce <= NumPlayerInOneRow)
NumRoundsVisible = 5;
else
NumRoundsVisible = 3;
if (NumRoundsVisible > GameState.Combs.Count)
NumRoundsVisible = GameState.Combs.Count;
@@ -496,9 +499,14 @@ namespace Vocaluxe.PartyModes
RoundsTable[i].TextScores[p].Visible = false;
}
}
if (GameState.Combs.Count < i + RoundsTableOffset)
if (GameState.Combs.Count < i + RoundsTableOffset || i + 1 > NumRoundsVisible)
{
RoundsTable[i].Number.Visible = false;
for (int p = 0; p < RoundsTable[i].TextPlayer.Count; p++)
{
RoundsTable[i].TextPlayer[p].Visible = false;
RoundsTable[i].TextScores[p].Visible = false;
}
}
}