- added vanilla donut handling to compat_floormove.

This commit is contained in:
Christoph Oelckers 2022-10-20 16:40:18 +02:00
parent 8394de00ca
commit 54e0201204

View file

@ -811,13 +811,12 @@ bool FLevelLocals::EV_DoDonut (int tag, line_t *line, double pillarspeed, double
if (!s2) // note lowest numbered line around
continue; // pillar must be two-sided
if (s2->PlaneMoving(sector_t::floor))
if (!(compatflags2 & COMPATF2_FLOORMOVE) && s2->PlaneMoving(sector_t::floor))
continue;
for (auto ln : s2->Lines)
{
if (!(ln->flags & ML_TWOSIDED) ||
(ln->backsector == s1))
if (ln->backsector == nullptr || ln->backsector == s1)
continue;
s3 = ln->backsector;