forked from mirrors/0ad
move M_PI etc. to wposix.h to ensure they're always present on Windows (previously required MathUtil.h)
use M_PI instead of nonstandard PI This was SVN commit r7380.
This commit is contained in:
@@ -265,7 +265,7 @@ void CMapWriter::WriteXML(const VfsPath& filename,
|
||||
CVector3D in = pCamera->m_Orientation.GetIn();
|
||||
// Convert to spherical coordinates
|
||||
float rotation = atan2(in.X, in.Z);
|
||||
float declination = atan2(sqrt(in.X*in.X + in.Z*in.Z), in.Y) - PI/2;
|
||||
float declination = atan2(sqrt(in.X*in.X + in.Z*in.Z), in.Y) - M_PI/2;
|
||||
|
||||
{
|
||||
XML_Element("Rotation");
|
||||
|
||||
Reference in New Issue
Block a user