SW: Upgrade SoundAngle() from the original 5-bit precision to EDuke32's 7-bit

git-svn-id: https://svn.eduke32.com/eduke32@8336 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2019-11-30 06:10:21 +00:00 committed by Christoph Oelckers
parent 1cac2c76c6
commit 8b78440f76

View file

@ -651,8 +651,8 @@ short SoundAngle(int x, int y)
if (delta_angle < 0)
delta_angle = NORM_ANGLE((1024 + delta_angle) + 1024);
// convert 2048 degree angle to 32 degree angle
return delta_angle >> 6;
// convert 2048 degree angle to 128 degree angle
return delta_angle >> 4;
}
int _PlayerSound(const char *file, int line, int num, int *x, int *y, int *z, Voc3D_Flags flags, PLAYERp pp)