From 2cb47583b83bb4471a399c9ac6b28bbda57ea012 Mon Sep 17 00:00:00 2001 From: c0d3d3v Date: Sat, 21 May 2022 18:17:10 +0200 Subject: [PATCH] fix condition of BugDDRaceInput, do only reset innputs on non ddnet mods --- src/game/client/prediction/entities/character.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/client/prediction/entities/character.cpp b/src/game/client/prediction/entities/character.cpp index 0ab7339a3..9922a9f00 100644 --- a/src/game/client/prediction/entities/character.cpp +++ b/src/game/client/prediction/entities/character.cpp @@ -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();