From e1d0b663e5d61ccd72d3972ca7afaf87f2ac8c00 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Tue, 7 Feb 2023 08:23:47 +0100 Subject: [PATCH] add PrBoom+ comment to previous fix --- src/p_floor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/p_floor.c b/src/p_floor.c index a0899e88..8a38840c 100644 --- a/src/p_floor.c +++ b/src/p_floor.c @@ -926,6 +926,9 @@ int EV_DoDonut(line_t* line) //jff 3/29/98 use true two-sidedness, not the flag if (comp[comp_model]) { + // original code: !s2->lines[i]->flags & ML_TWOSIDED + // equivalent to: (!s2->lines[i]->flags) & ML_TWOSIDED , i.e. 0 + // should be: !(s2->lines[i]->flags & ML_TWOSIDED) if (((!s2->lines[i]->flags) & ML_TWOSIDED) || (s2->lines[i]->backsector == s1)) continue;