Changed comment.

This commit is contained in:
user578 2015-11-15 02:44:40 +03:00
parent 2c48229370
commit 403114906a

View file

@ -417,7 +417,8 @@ void CPlayers::RenderPlayer(
} }
else else
{ {
// fix wrong calculation of weapon Angle in demo player // If player move his weapon through top then change the end angle on 2*Pi.
// So mix function will calculate offset angle by a short path, and not by long one.
if (Player.m_Angle > (256.0f * pi) && Prev.m_Angle < 0) if (Player.m_Angle > (256.0f * pi) && Prev.m_Angle < 0)
{ {
Player.m_Angle -= 256.0f * 2 * pi; Player.m_Angle -= 256.0f * 2 * pi;