Fix name-selection and guest-profiles.
This commit is contained in:
1 parent
6704344205
commit
9fb9d70dc9
4 files changed
+4
-4
No files matched your search
@@ -4,7 +4,7 @@
|
||||
<PlayerName>Guest 1</PlayerName>
|
||||
<Difficulty>TR_CONFIG_EASY</Difficulty>
|
||||
<Avatar>Avatar_f.png</Avatar>
|
||||
<GuestProfile>TR_CONFIG_ON</GuestProfile>
|
||||
<UserRole>TR_USERROLE_GUEST</UserRole>
|
||||
<Active>TR_CONFIG_ON</Active>
|
||||
</Info>
|
||||
</root>
|
||||
@@ -4,7 +4,7 @@
|
||||
<PlayerName>Guest 2</PlayerName>
|
||||
<Difficulty>TR_CONFIG_EASY</Difficulty>
|
||||
<Avatar>Avatar_f.png</Avatar>
|
||||
<GuestProfile>TR_CONFIG_ON</GuestProfile>
|
||||
<UserRole>TR_USERROLE_GUEST</UserRole>
|
||||
<Active>TR_CONFIG_ON</Active>
|
||||
</Info>
|
||||
</root>
|
||||
@@ -4,7 +4,7 @@
|
||||
<PlayerName>Guest 3</PlayerName>
|
||||
<Difficulty>TR_CONFIG_EASY</Difficulty>
|
||||
<Avatar>Avatar_m.png</Avatar>
|
||||
<GuestProfile>TR_CONFIG_ON</GuestProfile>
|
||||
<UserRole>TR_USERROLE_NORMAL</UserRole>
|
||||
<Active>TR_CONFIG_ON</Active>
|
||||
</Info>
|
||||
</root>
|
||||
@@ -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_NORMAL))
|
||||
&& profile.UserRole >= EUserRole.TR_USERROLE_NORMAL)
|
||||
visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user