mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Remove nesting
This commit is contained in:
parent
3f9d30af0f
commit
b9f301018f
|
@ -446,11 +446,8 @@ void CPlayer::OnDirectInput(CNetObj_PlayerInput *NewInput)
|
||||||
|
|
||||||
m_PlayerFlags = NewInput->m_PlayerFlags;
|
m_PlayerFlags = NewInput->m_PlayerFlags;
|
||||||
|
|
||||||
if(m_pCharacter)
|
if(m_pCharacter && m_Paused)
|
||||||
{
|
|
||||||
if(m_Paused)
|
|
||||||
m_pCharacter->ResetInput();
|
m_pCharacter->ResetInput();
|
||||||
}
|
|
||||||
|
|
||||||
if(!m_pCharacter && m_Team != TEAM_SPECTATORS && (NewInput->m_Fire&1))
|
if(!m_pCharacter && m_Team != TEAM_SPECTATORS && (NewInput->m_Fire&1))
|
||||||
m_Spawning = true;
|
m_Spawning = true;
|
||||||
|
|
Loading…
Reference in a new issue