mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
changed a hardcoded pi instance to use LOVE_M_PI instead
This commit is contained in:
@@ -996,7 +996,7 @@ namespace opengl
|
||||
|
||||
void Graphics::circle(DrawMode mode, float x, float y, float radius, int points )
|
||||
{
|
||||
float two_pi = 3.14159265f * 2;
|
||||
float two_pi = LOVE_M_PI * 2;
|
||||
if(points <= 0) points = 1;
|
||||
float angle_shift = (two_pi / points);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user