Skip to content

Commit

Permalink
Implement scroll in non-vgui MOTD for GoldSource (like in xash3d-fwgs)
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed May 25, 2024
1 parent 951a95c commit eff1ec3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cl_dll/input_goldsource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,12 @@ void GoldSourceInput::IN_MouseMove ( float frametime, usercmd_t *cmd)

if ( (in_mlook.state & 1) && !(in_strafe.state & 1))
{
viewangles[PITCH] += m_pitch->value * mouse_y;
#if !USE_VGUI || USE_NOVGUI_MOTD
if( gHUD.m_MOTD.m_bShow )
gHUD.m_MOTD.scroll += m_pitch->value * mouse_y;
else
#endif
viewangles[PITCH] += m_pitch->value * mouse_y;
if (viewangles[PITCH] > cl_pitchdown->value)
viewangles[PITCH] = cl_pitchdown->value;
if (viewangles[PITCH] < -cl_pitchup->value)
Expand Down

0 comments on commit eff1ec3

Please sign in to comment.