Skip to content

Commit

Permalink
xrGame/ui/UITalkWnd.cpp: if we have process key press in the talk win…
Browse files Browse the repository at this point in the history
…dow, tell it is processed.
  • Loading branch information
Xottab-DUTY committed Oct 17, 2021
1 parent 51b774c commit d8cd661
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/xrGame/ui/UITalkWnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,14 @@ bool CUITalkWnd::OnKeyboardAction(int dik, EUIMessages keyboard_action)
}
else if (IsBinded(kSPRINT_TOGGLE, dik))
{
if (m_pOthersInvOwner && m_pOthersInvOwner->NeedOsoznanieMode())
if (!m_pOthersInvOwner->NeedOsoznanieMode())
{
if (UITalkDialogWnd->mechanic_mode)
SwitchToUpgrade();
else
SwitchToTrade();
return true;

if (UITalkDialogWnd->mechanic_mode)
SwitchToUpgrade();
else
SwitchToTrade();
}
}
}

Expand Down

1 comment on commit d8cd661

@Xottab-DUTY
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a typo and forgot ed part on the end of the word. Correct description is this:

if we have processed key press in the talk window, tell it is processed.

Please sign in to comment.