Check if either permission bit is set to indicate protected achievement. Fixes #2.

This commit is contained in:
gibbed
2017-11-10 11:14:53 -06:00
parent 07737aeef7
commit 8e48814f77

View File

@@ -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,