use std math library M_PI instead of pi.

This commit is contained in:
Thomas Hou 2014-12-29 16:24:31 +08:00
parent 060c6ee0b7
commit 1502d32aac
1 changed files with 1 additions and 1 deletions

View File

@ -1991,7 +1991,7 @@ void QuaternionTest::addNewSpriteWithCoords(Vec2 p)
void QuaternionTest::update(float delta)
{
_accAngle += delta * _arcSpeed;
const float pi = 3.1415926f;
const float pi = M_PI;
if (_accAngle >= 2 * pi)
_accAngle -= 2 * pi;