mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 19:20:38 +00:00
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:
parent
1cac2c76c6
commit
8b78440f76
1 changed files with 2 additions and 2 deletions
|
@ -651,8 +651,8 @@ short SoundAngle(int x, int y)
|
||||||
if (delta_angle < 0)
|
if (delta_angle < 0)
|
||||||
delta_angle = NORM_ANGLE((1024 + delta_angle) + 1024);
|
delta_angle = NORM_ANGLE((1024 + delta_angle) + 1024);
|
||||||
|
|
||||||
// convert 2048 degree angle to 32 degree angle
|
// convert 2048 degree angle to 128 degree angle
|
||||||
return delta_angle >> 6;
|
return delta_angle >> 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _PlayerSound(const char *file, int line, int num, int *x, int *y, int *z, Voc3D_Flags flags, PLAYERp pp)
|
int _PlayerSound(const char *file, int line, int num, int *x, int *y, int *z, Voc3D_Flags flags, PLAYERp pp)
|
||||||
|
|
Loading…
Reference in a new issue