Misc clean ups that missed last round

This commit is contained in:
Anders Jenbo 2020-04-08 21:39:13 +02:00
commit edcd92e012
4 changed files with 9 additions and 6 deletions

View file

@ -1021,14 +1021,14 @@ BOOL calc_snd_position(int x, int y, int *plVolume, int *plPan)
x -= plr[myplr]._px;
y -= plr[myplr]._py;
pan = (x - y) << 8;
pan = (x - y) * 256;
*plPan = pan;
if (abs(pan) > 6400)
return FALSE;
volume = abs(x) > abs(y) ? abs(x) : abs(y);
volume <<= 6;
volume *= 64;
*plVolume = volume;
if (volume >= 6400)