Fix sound falloff calculation overflow

This commit is contained in:
Alug committed 2024-07-28 15:04:14 +02:00
1 parent 949d1a81ac
commit adfc22e377
1 file changed
+2 -1
+2 -1
View File
@@ -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;