- made adjustments to ZDoom's last changes.

This commit is contained in:
Christoph Oelckers 2016-04-28 17:55:58 +02:00
commit 434e39e62f
7 changed files with 17 additions and 12 deletions

View file

@ -64,8 +64,8 @@ static float avertexnormals[NUMVERTEXNORMALS][3] = {
static void UnpackVector(unsigned short packed, float vec[3])
{
float yaw = (packed & 511) / 512.0f * 2 * PI;
float pitch = ((packed >> 9) / 127.0f - 0.5f) * PI;
float yaw = (packed & 511) / 512.0f * 2 * M_PI;
float pitch = ((packed >> 9) / 127.0f - 0.5f) * M_PI;
float cosp = (float) cos(pitch);
vec[VX] = (float) cos(yaw) * cosp;