fix condition of BugDDRaceInput, do only reset innputs on non ddnet mods

This commit is contained in:
c0d3d3v 2022-05-21 18:17:10 +02:00
parent a04079324d
commit 2cb47583b8
No known key found for this signature in database
GPG key ID: 068AF680530DFF31

View file

@ -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();