From 1367261b8a2a2eb3ef3d7283297fc8aee559def1 Mon Sep 17 00:00:00 2001 From: Eidolon Date: Tue, 31 Mar 2026 19:40:43 -0500 Subject: [PATCH] Fix bitflags enum polywaypointflags_e for C++ --- src/p_polyobj.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/p_polyobj.h b/src/p_polyobj.h index f523f4202..edafb29a7 100644 --- a/src/p_polyobj.h +++ b/src/p_polyobj.h @@ -276,11 +276,9 @@ struct polymovedata_t UINT8 overRide; // if true, will override any action on the object }; -typedef enum -{ - PWF_REVERSE = 1, // Move through waypoints in reverse order - PWF_LOOP = 1<<1, // Loop movement (used with PWR_WRAP or PWR_COMEBACK) -} polywaypointflags_e; +typedef INT32 polywaypointflags_e; +#define PWF_REVERSE (1) // Move through waypoints in reverse order +#define PWF_LOOP (1<<1) // Loop movement (used with PWR_WRAP or PWR_COMEBACK) struct polywaypointdata_t {