Skip to content

Commit afe7d33

Browse files
committed
client: limit lower bound of default_fov to 90, similar to official HLSDK
1 parent 5fae1fb commit afe7d33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cl_dll/hud_redraw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void CHud::Think( void )
7878
else
7979
{
8080
// set a new sensitivity that is proportional to the change from the FOV default
81-
m_flMouseSensitivity = sensitivity->value * ((float)newfov / (float)default_fov->value) * CVAR_GET_FLOAT("zoom_sensitivity_ratio");
81+
m_flMouseSensitivity = sensitivity->value * ((float)newfov / Q_max( default_fov->value, 90 )) * CVAR_GET_FLOAT("zoom_sensitivity_ratio");
8282
}
8383

8484
// think about default fov

0 commit comments

Comments
 (0)