From 076d0cfe4b76840a793a1568f1c9ed6001ab30ce Mon Sep 17 00:00:00 2001 From: MaxED Date: Mon, 12 May 2014 07:33:36 +0000 Subject: [PATCH] Tag Explorer was not showing map elements with negative tag. --- Source/Plugins/TagExplorer/Controls/TagExplorer.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Plugins/TagExplorer/Controls/TagExplorer.cs b/Source/Plugins/TagExplorer/Controls/TagExplorer.cs index d2b3fd15..720d092d 100644 --- a/Source/Plugins/TagExplorer/Controls/TagExplorer.cs +++ b/Source/Plugins/TagExplorer/Controls/TagExplorer.cs @@ -118,7 +118,7 @@ namespace CodeImp.DoomBuilder.TagExplorer if(!(things is MapElementCollection)) { //don't want to enumerate when array is locked foreach(Thing t in things) { - if((showTags && t.Tag > 0) || (showActions && t.Action > 0)) { + if((showTags && t.Tag != 0) || (showActions && t.Action > 0)) { if(filteredTag != -1 && t.Tag != filteredTag) continue; if(filteredAction != -1 && t.Action != filteredAction) @@ -242,7 +242,7 @@ namespace CodeImp.DoomBuilder.TagExplorer if (!(sectors is MapElementCollection)) { //don't want to enumerate when array is locked foreach (Sector s in sectors) { - if ((showTags && s.Tag > 0) || (showActions && s.Effect > 0)) { + if ((showTags && s.Tag != 0) || (showActions && s.Effect > 0)) { if (filteredTag != -1 && s.Tag != filteredTag) continue; if (filteredAction != -1 && s.Effect != filteredAction) @@ -341,7 +341,7 @@ namespace CodeImp.DoomBuilder.TagExplorer if (!(linedefs is MapElementCollection)) { //don't want to enumerate when array is locked foreach (Linedef l in linedefs) { - if ((showTags && l.Tag > 0) || (showActions && l.Action > 0)) { + if ((showTags && l.Tag != 0) || (showActions && l.Action > 0)) { if (filteredTag != -1 && l.Tag != filteredTag) continue; if (filteredAction != -1 && l.Action != filteredAction)