summaryrefslogtreecommitdiff
path: root/src/heretic/p_spec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/heretic/p_spec.c')
-rw-r--r--src/heretic/p_spec.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/heretic/p_spec.c b/src/heretic/p_spec.c
index 49c067fa..20fb950b 100644
--- a/src/heretic/p_spec.c
+++ b/src/heretic/p_spec.c
@@ -1065,8 +1065,12 @@ int EV_DoDonut(line_t * line)
s2 = getNextSector(s1->lines[0], s1);
for (i = 0; i < s2->linecount; i++)
{
- if ((!s2->lines[i]->flags & ML_TWOSIDED) ||
- (s2->lines[i]->backsector == s1))
+ // Note: This was originally part of the following test:
+ // (!s2->lines[i]->flags & ML_TWOSIDED) ||
+ // Due to the apparent mistaken formatting, this can never be
+ // true.
+
+ if (s2->lines[i]->backsector == s1)
continue;
s3 = s2->lines[i]->backsector;