mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fix condition of BugDDRaceInput, do only reset innputs on non ddnet mods
This commit is contained in:
parent
a04079324d
commit
2cb47583b8
|
@ -494,7 +494,7 @@ void CCharacter::GiveNinja()
|
|||
void CCharacter::OnPredictedInput(CNetObj_PlayerInput *pNewInput)
|
||||
{
|
||||
// skip the input if chat is active
|
||||
if(GameWorld()->m_WorldConfig.m_BugDDRaceInput && pNewInput->m_PlayerFlags & PLAYERFLAG_CHATTING)
|
||||
if(!GameWorld()->m_WorldConfig.m_BugDDRaceInput && pNewInput->m_PlayerFlags & PLAYERFLAG_CHATTING)
|
||||
{
|
||||
// save reseted input
|
||||
mem_copy(&m_SavedInput, &m_Input, sizeof(m_SavedInput));
|
||||
|
@ -515,7 +515,7 @@ void CCharacter::OnPredictedInput(CNetObj_PlayerInput *pNewInput)
|
|||
void CCharacter::OnDirectInput(CNetObj_PlayerInput *pNewInput)
|
||||
{
|
||||
// skip the input if chat is active
|
||||
if(GameWorld()->m_WorldConfig.m_BugDDRaceInput && pNewInput->m_PlayerFlags & PLAYERFLAG_CHATTING)
|
||||
if(!GameWorld()->m_WorldConfig.m_BugDDRaceInput && pNewInput->m_PlayerFlags & PLAYERFLAG_CHATTING)
|
||||
{
|
||||
// reset input
|
||||
ResetInput();
|
||||
|
|
Loading…
Reference in a new issue