From ab3ea7475fbf5b84c9b9b7640d58921051f0f0fe Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 4 Jun 2024 17:08:09 +0200 Subject: [PATCH] think this should be casted to angle_t --- src/hardware/hw_clip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hardware/hw_clip.c b/src/hardware/hw_clip.c index 623527549..2c6e1d52e 100644 --- a/src/hardware/hw_clip.c +++ b/src/hardware/hw_clip.c @@ -337,16 +337,16 @@ angle_t gld_FrustumAngle(angle_t tiltangle) floatangle = 2.0f + (45.0f + (tilt / 1.9f)) * clipfov / 90.0f; if (floatangle >= 180.0) return 0xffffffff; - a1 = ANG1 * (int)floatangle; + a1 = (angle_t)(ANG1 * (int)floatangle); return a1; } - // SRB2CB I don't think used any of this stuff, let's disable for now since SRB2 probably doesn't want it either // compiler complains about (p)glGetFloatv anyway, in case anyone wants this // only r_opengl.c can use the base gl funcs as it turns out, that's a problem for whoever wants sphere frustum checks // btw to renable define HAVE_SPHEREFRUSTRUM in hw_clip.h #ifdef HAVE_SPHEREFRUSTRUM + // // gld_FrustumSetup //