mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
Replace 3.14159265f with 'pi' from math.h
This commit is contained in:
parent
9db49d9f74
commit
0d72b62daf
|
@ -182,7 +182,7 @@ void FillTmpTileSpeedup(SGraphicTile *pTmpTile, SGraphicTileTexureCoords *pTmpTe
|
|||
}
|
||||
|
||||
//same as in rotate from Graphics()
|
||||
float Angle = (float)AngleRotate * (3.14159265f / 180.0f);
|
||||
float Angle = (float)AngleRotate * (pi / 180.0f);
|
||||
float c = cosf(Angle);
|
||||
float s = sinf(Angle);
|
||||
float xR, yR;
|
||||
|
|
|
@ -512,7 +512,7 @@ void CRenderTools::RenderSpeedupOverlay(CSpeedupTile *pSpeedup, int w, int h, fl
|
|||
Graphics()->SetColor(255.0f, 255.0f, 255.0f, Alpha);
|
||||
|
||||
SelectSprite(SPRITE_SPEEDUP_ARROW);
|
||||
Graphics()->QuadsSetRotation(pSpeedup[c].m_Angle * (3.14159265f / 180.0f));
|
||||
Graphics()->QuadsSetRotation(pSpeedup[c].m_Angle * (pi / 180.0f));
|
||||
DrawSprite(mx * Scale + 16, my * Scale + 16, 35.0f);
|
||||
|
||||
Graphics()->QuadsEnd();
|
||||
|
|
Loading…
Reference in a new issue