commit
f8012e339f
3 files changed
+5
-2
No files matched your search
@@ -466,7 +466,7 @@ namespace Vocaluxe.Base
|
|||||||
if (!IsProfileIDValid(profileID))
|
if (!IsProfileIDValid(profileID))
|
||||||
return true; // this will prevent from saving dummy profiles to highscore db
|
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)
|
public static bool IsActive(int profileID)
|
||||||
|
|||||||
@@ -217,6 +217,9 @@ namespace Vocaluxe.Base
|
|||||||
public static void UpdateRandomSongList()
|
public static void UpdateRandomSongList()
|
||||||
{
|
{
|
||||||
_SongsForRandom.Clear();
|
_SongsForRandom.Clear();
|
||||||
|
if (NumSongsVisible == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
//Calc avarage sing-count
|
//Calc avarage sing-count
|
||||||
int totalCounts = 0;
|
int totalCounts = 0;
|
||||||
foreach (CSong song in VisibleSongs)
|
foreach (CSong song in VisibleSongs)
|
||||||
|
|||||||
@@ -509,7 +509,7 @@ namespace VocaluxeLib.Menu
|
|||||||
{
|
{
|
||||||
//Don't show profile if is selected, but if selected and guest
|
//Don't show profile if is selected, but if selected and guest
|
||||||
if (CBase.Game.GetPlayers()[p].ProfileID == profile.ID
|
if (CBase.Game.GetPlayers()[p].ProfileID == profile.ID
|
||||||
&& profile.UserRole.HasFlag(EUserRole.TR_USERROLE_GUEST))
|
&& !profile.UserRole.HasFlag(EUserRole.TR_USERROLE_NORMAL))
|
||||||
visible = false;
|
visible = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user