From 5b285a60a273fcd8e130870d4963bdba853dbddc Mon Sep 17 00:00:00 2001 From: Jimita <16945067+monster-psychic-cat@users.noreply.github.com> Date: Thu, 20 Dec 2018 16:15:19 -0300 Subject: [PATCH] Update r_segs.c --- src/r_segs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r_segs.c b/src/r_segs.c index bdc463da..6d6ba1ef 100644 --- a/src/r_segs.c +++ b/src/r_segs.c @@ -1651,9 +1651,9 @@ static void R_RenderSegLoop (void) static INT64 R_CalcSegDist(seg_t* seg, INT64 x2, INT64 y2) { if (!seg->linedef->dy) - return abs(y2 - seg->v1->y); + return llabs(y2 - seg->v1->y); else if (!seg->linedef->dx) - return abs(x2 - seg->v1->x); + return llabs(x2 - seg->v1->x); else { INT64 dx = (seg->v2->x)-(seg->v1->x);