Updated UsePlayers

This commit is contained in:
Flamefire committed 2013-04-25 19:01:26 +02:00
1 parent bdca0554e4
commit ff58f76dc0
1 file changed
+4 -8
+4 -8
View File
@@ -832,23 +832,19 @@ namespace Vocaluxe.Base
/// Use saved players from config now for games
/// </summary>
public static void UsePlayers()
{
for (int i = 0; i < CProfiles.Profiles.Length; i++)
{
for (int j = 0; j < CSettings.MaxNumPlayer; j++)
{
if (Players[j] != "")
{
CGame.Players[j].ProfileID = -1;
if (Players[j] == "")
continue;
for (int i = 0; i < CProfiles.Profiles.Length; i++)
if (Path.GetFileName(CProfiles.Profiles[i].ProfileFile) == Players[j] && CProfiles.Profiles[i].Active == EOffOn.TR_CONFIG_ON)
{
//Update Game-infos with player
CGame.Players[j].ProfileID = i;
}
}
else
CGame.Players[j].ProfileID = -1;
}
}
}
}
}