mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +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 AttackTicksPassed = AttackTime * (float)SERVER_TICK_SPEED;
|
||||||
|
|
||||||
float Angle;
|
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
|
// 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]);
|
Angle = angle(m_pClient->m_Controls.m_aMousePos[g_Config.m_ClDummy]);
|
||||||
|
|
Loading…
Reference in a new issue