mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 04:12:12 +00:00
Flags Form: added special handling for flag with zero value.
This commit is contained in:
parent
7b735dc898
commit
2056febb82
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue