From 6fcda4e2a693f057db223cadbcbdd68080042689 Mon Sep 17 00:00:00 2001 From: GenericHeroGuy Date: Sun, 20 Jul 2025 22:40:24 +0200 Subject: [PATCH] Fix polywaypoint_t->continuous being uninitialized I spent two hours staring at minecarts just for this shit --- src/p_polyobj.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/p_polyobj.c b/src/p_polyobj.c index d1302be6c..f161ca833 100644 --- a/src/p_polyobj.c +++ b/src/p_polyobj.c @@ -2175,8 +2175,7 @@ boolean EV_DoPolyObjWaypoint(polywaypointdata_t *pwdata) th->direction = (pwdata->flags & PWF_REVERSE) ? -1 : 1; th->returnbehavior = pwdata->returnbehavior; - if (pwdata->flags & PWF_LOOP) - th->continuous = true; + th->continuous = !!(pwdata->flags & PWF_LOOP); th->stophere = false; // Find the first waypoint we need to use