diff --git a/src/game/client/components/maplayers.cpp b/src/game/client/components/maplayers.cpp index e07561dd6..37e480550 100644 --- a/src/game/client/components/maplayers.cpp +++ b/src/game/client/components/maplayers.cpp @@ -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; diff --git a/src/game/client/render_map.cpp b/src/game/client/render_map.cpp index a8dd469e0..6a06ead0d 100644 --- a/src/game/client/render_map.cpp +++ b/src/game/client/render_map.cpp @@ -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();