Fix: HasFlag(EUserRole.TR_USERROLE_GUEST) does not work (workaround replaced it with !NORMAL)
This commit is contained in:
1 parent
e45dc4d8a9
commit
055dc33675
2 files changed
+2
-2
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user