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

This commit is contained in:
lukeIam authored and Florian Küpper committed 2013-12-26 13:02:01 +01:00
1 parent 2f01f4db15
commit 341f03714e
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;
}
}