mirror of https://github.com/axmolengine/axmol.git
use std math library M_PI instead of pi.
This commit is contained in:
parent
060c6ee0b7
commit
1502d32aac
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue