mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 09:34:19 +00:00
Don't use "direct input" if paused.
This commit is contained in:
parent
3ce669df13
commit
a08e306aa4
|
@ -384,7 +384,7 @@ void CPlayers::RenderPlayer(
|
|||
float AttackTicksPassed = AttackTime * (float)SERVER_TICK_SPEED;
|
||||
|
||||
float Angle;
|
||||
if(Local && Client()->State() != IClient::STATE_DEMOPLAYBACK)
|
||||
if(Local && (!m_pClient->m_Snap.m_SpecInfo.m_Active || m_pClient->m_Snap.m_SpecInfo.m_SpectatorID != SPEC_FREEVIEW) && Client()->State() != IClient::STATE_DEMOPLAYBACK)
|
||||
{
|
||||
// just use the direct input if it's the local player we are rendering
|
||||
Angle = angle(m_pClient->m_Controls.m_aMousePos[g_Config.m_ClDummy]);
|
||||
|
|
Loading…
Reference in a new issue