Skip to content

Commit

Permalink
Merge pull request ddnet#9442 from MilkeeyCat/pr_dont_count_fire_if_s…
Browse files Browse the repository at this point in the history
…pec_menu_is_opened

Don't count fire if spec menu is opened
  • Loading branch information
def- authored Dec 30, 2024
2 parents e9148f5 + ad0e6c1 commit 1b5dbe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/client/components/controls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static void ConKeyInputCounter(IConsole::IResult *pResult, void *pUserData)
{
CInputState *pState = (CInputState *)pUserData;

if(pState->m_pControls->GameClient()->m_GameInfo.m_BugDDRaceInput && pState->m_pControls->GameClient()->m_Snap.m_SpecInfo.m_Active)
if((pState->m_pControls->GameClient()->m_GameInfo.m_BugDDRaceInput && pState->m_pControls->GameClient()->m_Snap.m_SpecInfo.m_Active) || pState->m_pControls->GameClient()->m_Spectator.IsActive())
return;

int *pVariable = pState->m_apVariables[g_Config.m_ClDummy];
Expand Down

0 comments on commit 1b5dbe0

Please sign in to comment.