From adfc22e377e3498533f1198b3bd38d5c885be2a2 Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 28 Jul 2024 15:04:14 +0200 Subject: [PATCH] Fix sound falloff calculation overflow --- src/s_sound.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/s_sound.c b/src/s_sound.c index 92c4480da..a88477a38 100644 --- a/src/s_sound.c +++ b/src/s_sound.c @@ -1039,7 +1039,8 @@ boolean S_AdjustSoundParams(const mobj_t *listener, const mobj_t *source, INT32 if (sfxinfo->pitch & SF_OUTSIDESOUND) // Rain special case { - fixed_t x, y, yl, yh, xl, xh, newdist; + INT64 x, y, yl, yh, xl, xh; + fixed_t newdist; if (R_PointInSubsector(listensource.x, listensource.y)->sector->ceilingpic == skyflatnum) approx_dist = 0;