Skip to content
Snippets Groups Projects
Commit 2056febb authored by MaxED's avatar MaxED
Browse files

Flags Form: added special handling for flag with zero value.

parent 7b735dc8
No related branches found
No related tags found
No related merge requests found
......@@ -76,8 +76,8 @@ namespace CodeImp.DoomBuilder.Windows
// Not the same box?
if(b != sender)
{
// Overlapping bit flags?
if(((int)b.Tag & (int)thisbox.Tag) != 0)
// Overlapping bit flags? mxd: box with flag 0 requires special handling...
if( (int)b.Tag == 0 || (int)thisbox.Tag == 0 || (((int)b.Tag & (int)thisbox.Tag) != 0) )
{
// Uncheck the other
b.Checked = false;
......@@ -143,8 +143,8 @@ namespace CodeImp.DoomBuilder.Windows
// Not the same box?
if(b != box)
{
// Overlapping bit flags?
if(((int)b.Tag & (int)box.Tag) != 0)
// Overlapping bit flags? mxd: box with flag 0 requires special handling...
if( ((int)b.Tag == 0 && value != 0) || ((int)b.Tag & (int)box.Tag) != 0 )
{
// Uncheck the other
b.Checked = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment