From 341f03714ec15aefd2790675351830725d84328d Mon Sep 17 00:00:00 2001 From: lukeIam Date: Sat, 21 Dec 2013 10:28:43 +0100 Subject: [PATCH] Fix: HasFlag(EUserRole.TR_USERROLE_GUEST) does not work (workaround replaced it with !NORMAL) --- Vocaluxe/Base/CProfiles.cs | 2 +- VocaluxeLib/Menu/CNameSelection.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Vocaluxe/Base/CProfiles.cs b/Vocaluxe/Base/CProfiles.cs index d77331ca..01a05653 100644 --- a/Vocaluxe/Base/CProfiles.cs +++ b/Vocaluxe/Base/CProfiles.cs @@ -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) diff --git a/VocaluxeLib/Menu/CNameSelection.cs b/VocaluxeLib/Menu/CNameSelection.cs index bb1df5b2..274a8307 100644 --- a/VocaluxeLib/Menu/CNameSelection.cs +++ b/VocaluxeLib/Menu/CNameSelection.cs @@ -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; } }