mirror of
https://github.com/JDM170/SteamAchievementManager
synced 2025-12-10 05:37:18 +07:00
Check if either permission bit is set to indicate protected achievement. Fixes #2.
This commit is contained in:
@@ -455,7 +455,7 @@ namespace SAM.Game
|
||||
Checked = isAchieved,
|
||||
Tag = info,
|
||||
Text = info.Name,
|
||||
BackColor = (def.Permission & 2) == 0 ? Color.Black : Color.FromArgb(64, 0, 0),
|
||||
BackColor = (def.Permission & 3) == 0 ? Color.Black : Color.FromArgb(64, 0, 0),
|
||||
};
|
||||
|
||||
info.Item = item;
|
||||
@@ -828,7 +828,7 @@ namespace SAM.Game
|
||||
return;
|
||||
}
|
||||
|
||||
if ((info.Permission & 2) != 0)
|
||||
if ((info.Permission & 3) != 0)
|
||||
{
|
||||
MessageBox.Show(
|
||||
this,
|
||||
|
||||
Reference in New Issue
Block a user