mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +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()
|
//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 c = cosf(Angle);
|
||||||
float s = sinf(Angle);
|
float s = sinf(Angle);
|
||||||
float xR, yR;
|
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);
|
Graphics()->SetColor(255.0f, 255.0f, 255.0f, Alpha);
|
||||||
|
|
||||||
SelectSprite(SPRITE_SPEEDUP_ARROW);
|
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);
|
DrawSprite(mx * Scale + 16, my * Scale + 16, 35.0f);
|
||||||
|
|
||||||
Graphics()->QuadsEnd();
|
Graphics()->QuadsEnd();
|
||||||
|
|
Loading…
Reference in a new issue