- made adjustments to ZDoom's last changes.
This commit is contained in:
parent
60a78a0d9b
commit
434e39e62f
7 changed files with 17 additions and 12 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue