From cd7079da92b2fdee59fa30bfa3bc1b08e2f268b8 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 13 Mar 2024 08:35:24 +0100 Subject: [PATCH] Revert "Zzz...." This reverts commit e05197af882049e555c4116d1e6b4fd5ec4e879d. --- src/p_maputl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_maputl.c b/src/p_maputl.c index 59687bcfa..cca5632f5 100644 --- a/src/p_maputl.c +++ b/src/p_maputl.c @@ -137,7 +137,7 @@ void P_ClosestPointOnLine3D(fixed_t x, fixed_t y, fixed_t z, line_t *line, verte PUREFUNC FUNCINLINE ATTRINLINE INT32 P_PointOnLineSide(fixed_t x, fixed_t y, const line_t *restrict line) { const vertex_t *v1 = line->v1; - fixed_t dx, dy, left, right; + fixed_t dx, dy; if (!line->dx) return x <= v1->x ? line->dy > 0 : line->dy < 0; @@ -151,7 +151,7 @@ PUREFUNC FUNCINLINE ATTRINLINE INT32 P_PointOnLineSide(fixed_t x, fixed_t y, con left = FixedMul(line->dy>>FRACBITS, dx); right = FixedMul(dy, line->dx>>FRACBITS); - return (right < left) ? 0 : 1; + return right < left ? 0 : 1; } //