Skip to content

Commit

Permalink
Fixed compilation error caused by wrong key context
Browse files Browse the repository at this point in the history
And removed that whitespace...
  • Loading branch information
Xottab-DUTY committed Aug 10, 2023
1 parent c842a36 commit 346e7f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/xrGame/ui/UITalkWnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ bool CUITalkWnd::OnControllerAction(int axis, float x, float y, EUIMessages cont
{
if (controller_action == WINDOW_KEY_PRESSED)
{
switch (GetBindedAction(axis, EKeyContext::Trade))
switch (GetBindedAction(axis, EKeyContext::Talk))
{
default:
return OnKeyboardAction(axis, controller_action);
Expand Down
1 change: 0 additions & 1 deletion src/xrGame/ui/UITaskWnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ void CUITaskWnd::DropFilterSelection()

bool CUITaskWnd::OnKeyboardAction(int dik, EUIMessages keyboard_action)
{

if (keyboard_action == WINDOW_KEY_PRESSED)
{
if (IsBinded(kPDA_FILTER_TOGGLE, dik, EKeyContext::PDA) && m_selected_filter == -1)
Expand Down

0 comments on commit 346e7f4

Please sign in to comment.