Skip to content

Commit

Permalink
MENU: Invert mouse fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MotoLegacy committed Oct 20, 2024
1 parent 8d3916d commit a150787
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions source/menu/menu_ctrl.qc
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ void() Menu_Control_StoreCurrentSettings =
current_adsmode = 1;
}

if (cvar("m_pitch") == 0.022)
localcmd("m_pitch -0.022\n");
else
localcmd("m_pitch 0.022\n");

current_invert = (cvar("m_pitch") == 0.022);
};

Expand Down Expand Up @@ -53,9 +48,9 @@ void() Menu_Control_InvertLook =
current_invert = !current_invert;

if (current_invert)
localcmd("m_pitch -0.022\n");
else
localcmd("m_pitch 0.022\n");
else
localcmd("m_pitch -0.022\n");
};

void() Menu_Control_ApplySettings =
Expand Down

0 comments on commit a150787

Please sign in to comment.