Merge pull request #88 from flokuep/develop

Small bugfixes
This commit is contained in:
Stephan Sundermann committed 2013-12-21 14:49:39 -08:00
commit f8012e339f
3 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -466,7 +466,7 @@ namespace Vocaluxe.Base
if (!IsProfileIDValid(profileID))
return true; // this will prevent from saving dummy profiles to highscore db
return _Profiles[profileID].UserRole.HasFlag(EUserRole.TR_USERROLE_GUEST);
return !_Profiles[profileID].UserRole.HasFlag(EUserRole.TR_USERROLE_NORMAL);
}
public static bool IsActive(int profileID)
+3
View File
@@ -217,6 +217,9 @@ namespace Vocaluxe.Base
public static void UpdateRandomSongList()
{
_SongsForRandom.Clear();
if (NumSongsVisible == 0)
return;
//Calc avarage sing-count
int totalCounts = 0;
foreach (CSong song in VisibleSongs)
+1 -1
View File
@@ -509,7 +509,7 @@ namespace VocaluxeLib.Menu
{
//Don't show profile if is selected, but if selected and guest
if (CBase.Game.GetPlayers()[p].ProfileID == profile.ID
&& profile.UserRole.HasFlag(EUserRole.TR_USERROLE_GUEST))
&& !profile.UserRole.HasFlag(EUserRole.TR_USERROLE_NORMAL))
visible = false;
}
}