Revert "Revert "Update players.cpp"" (fixes #4926)

This reverts commit 36bfe24522.
This commit is contained in:
Dennis Felsing 2022-03-30 23:29:35 +02:00
parent d94bc56cca
commit 68c7044912

View file

@ -137,7 +137,7 @@ void CPlayers::RenderHookCollLine(
vec2 ExDirection = Direction;
if(Local && Client()->State() != IClient::STATE_DEMOPLAYBACK)
ExDirection = normalize(vec2(m_pClient->m_Controls.m_InputData[g_Config.m_ClDummy].m_TargetX, m_pClient->m_Controls.m_InputData[g_Config.m_ClDummy].m_TargetY));
ExDirection = normalize(vec2((int)m_pClient->m_Controls.m_MousePos[g_Config.m_ClDummy].x, (int)m_pClient->m_Controls.m_MousePos[g_Config.m_ClDummy].y));
Graphics()->TextureClear();
vec2 InitPos = Position;