Fix frame_msec possibly being zero in cl_input.c.

This fixes a mouse freezing bug.
This commit is contained in:
SmileTheory 2016-01-29 20:14:35 -08:00 committed by smallmodel
parent dacfa6ae55
commit aba9f25744
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -726,6 +726,12 @@ void CL_CreateNewCommands( void ) {
frame_msec = com_frameTime - old_com_frameTime;
// if running over 1000fps, act as if each frame is 1ms
// prevents divisions by zero
if ( frame_msec < 1 ) {
frame_msec = 1;
}
// if running less than 5fps, truncate the extra time to prevent
// unexpected moves after a hitch
if ( frame_msec > 200 ) {