Fix: HasFlag(EUserRole.TR_USERROLE_GUEST) does not work (workaround replaced it with !NORMAL)

This commit is contained in:
lukeIam committed 2013-12-21 10:28:43 +01:00
1 parent e45dc4d8a9
commit 055dc33675
2 files changed
+2 -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)
+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;
}
}