mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge #937
937: Fix `3 / 2` using integer division r=Learath2 a=heinrich5991
This commit is contained in:
commit
71d77ae778
|
@ -841,7 +841,7 @@ void CPlayers::RenderPlayer(
|
||||||
if (OtherTeam)
|
if (OtherTeam)
|
||||||
Graphics()->SetColor(1.0f, 1.0f, 1.0f, g_Config.m_ClShowOthersAlpha / 100.0f);
|
Graphics()->SetColor(1.0f, 1.0f, 1.0f, g_Config.m_ClShowOthersAlpha / 100.0f);
|
||||||
IGraphics::CQuadItem QuadItem(Position.x, Position.y - 70, 22, 22);
|
IGraphics::CQuadItem QuadItem(Position.x, Position.y - 70, 22, 22);
|
||||||
Graphics()->QuadsSetRotation(3 / 2 * pi);
|
Graphics()->QuadsSetRotation(pi * 3 / 2);
|
||||||
Graphics()->QuadsDraw(&QuadItem, 1);
|
Graphics()->QuadsDraw(&QuadItem, 1);
|
||||||
Graphics()->QuadsEnd();
|
Graphics()->QuadsEnd();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue