From 0eaedd4b5efaf5a8a0ee565acbd703750447da17 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 11 Dec 2024 01:25:29 +0100 Subject: [PATCH] "extra safety" --- src/r_fps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r_fps.c b/src/r_fps.c index 637ce1cf4..b861dea56 100644 --- a/src/r_fps.c +++ b/src/r_fps.c @@ -103,12 +103,12 @@ static inline angle_t R_LerpAngleView(angle_t from, angle_t to, fixed_t frac) static inline fixed_t R_LerpFixed(fixed_t from, fixed_t to, fixed_t frac) { - return ((from == to) ? to : from + FixedMul(frac, to - from)); + return ((from == to) ? to : (from + FixedMul(frac, to - from))); } static inline angle_t R_LerpAngle(angle_t from, angle_t to, fixed_t frac) { - return ((from == to) ? to : from + FixedMul(frac, to - from)); + return ((from == to) ? to : (from + FixedMul(frac, to - from))); } /*static vector2_t *R_LerpVector2(const vector2_t *from, const vector2_t *to, fixed_t frac, vector2_t *out)