fixed IsActive in CProfiles.cs, some cleanup in CScreenHighscore.cs
This commit is contained in:
1 parent
b12eca0cb9
commit
3bb7eb281a
2 files changed
+2
-10
No files matched your search
@@ -246,7 +246,7 @@ namespace Vocaluxe.Base
|
|||||||
{
|
{
|
||||||
if (ProfileNr < 0 || ProfileNr >= _Profiles.Count)
|
if (ProfileNr < 0 || ProfileNr >= _Profiles.Count)
|
||||||
return false;
|
return false;
|
||||||
return _Profiles[ProfileNr].GuestProfile == EOffOn.TR_CONFIG_ON;
|
return _Profiles[ProfileNr].Active == EOffOn.TR_CONFIG_ON;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void SetAvatar(int ProfileNr, int AvatarNr)
|
public static void SetAvatar(int ProfileNr, int AvatarNr)
|
||||||
|
|||||||
@@ -223,15 +223,7 @@ namespace Vocaluxe.Screens
|
|||||||
|
|
||||||
for (int p = 0; p < player.Length; p++)
|
for (int p = 0; p < player.Length; p++)
|
||||||
{
|
{
|
||||||
bool guest = true;
|
if (player[p].Points > CSettings.MinScoreForDB && player[p].SongFinished && !CProfiles.IsGuestProfile(p))
|
||||||
|
|
||||||
if (player[p].ProfileID >= 0 && player[p].ProfileID < CProfiles.NumProfiles)
|
|
||||||
{
|
|
||||||
if (CProfiles.Profiles[player[p].ProfileID].GuestProfile == EOffOn.TR_CONFIG_OFF)
|
|
||||||
guest = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (player[p].Points > CSettings.MinScoreForDB && player[p].SongFinished && !guest)
|
|
||||||
_NewEntryIDs.Add(CDataBase.AddScore(player[p]));
|
_NewEntryIDs.Add(CDataBase.AddScore(player[p]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user