From 156173b3b93f939401d00eabe01b4fbdcdf5cc20 Mon Sep 17 00:00:00 2001 From: Indev Date: Sat, 3 Aug 2024 21:27:25 +0300 Subject: [PATCH] Smol safeguard for R_PointToDist2 --- src/r_main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_main.h b/src/r_main.h index 058a30c80..a271a3b1d 100644 --- a/src/r_main.h +++ b/src/r_main.h @@ -80,7 +80,7 @@ subsector_t *R_PointInSubsector(fixed_t x, fixed_t y); subsector_t *R_IsPointInSubsector(fixed_t x, fixed_t y); #define R_PointToDist(x, y) R_PointToDist2(viewx, viewy, x, y) -#define R_PointToDist2(px2, py2, px1, py1) FixedHypot(px1 - px2, py1 - py2) +#define R_PointToDist2(px2, py2, px1, py1) FixedHypot((px1) - (px2), (py1) - (py2)) boolean R_DoCulling(line_t *cullheight, line_t *viewcullheight, fixed_t vz, fixed_t bottomh, fixed_t toph);