- 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

@ -60,8 +60,8 @@ static void UnpackVector(unsigned short packed, float & nx, float & ny, float &
{
double lat = ( packed >> 8 ) & 0xff;
double lng = ( packed & 0xff );
lat *= PI/128;
lng *= PI/128;
lat *= M_PI/128;
lng *= M_PI/128;
nx = cos(lat) * sin(lng);
ny = sin(lat) * sin(lng);