Fix frame_msec possibly being zero in cl_input.c.

This fixes a mouse freezing bug.
This commit is contained in:
SmileTheory committed 2016-01-29 20:14:35 -08:00
1 parent 2b2f1aeaa1
commit 41791c662f
1 file changed
+6
+6
View File
@@ -632,6 +632,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 ) {