1
0
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:
janwas
2010-03-20 20:54:03 +00:00
parent d1c5119694
commit 0bbb99c3cd
19 changed files with 76 additions and 78 deletions
+1 -1
View File
@@ -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");