Permalink
Browse files

Check if either permission bit is set to indicate protected achieveme…

…nt. Fixes #2.
  • Loading branch information...
gibbed committed Nov 10, 2017
1 parent 07737ae commit 8e48814f774f7480f87f17609bb8da605fab0459
Showing with 2 additions and 2 deletions.
  1. +2 −2 SAM.Game/Manager.cs
View
@@ -455,7 +455,7 @@ private void GetAchievements()
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 @@ private void OnCheckAchievement(object sender, ItemCheckEventArgs e)
return;
}
if ((info.Permission & 2) != 0)
if ((info.Permission & 3) != 0)
{
MessageBox.Show(
this,

0 comments on commit 8e48814

Please sign in to comment.