[quake3-commits] r1852 - trunk/code/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Feb 4 12:16:53 EST 2011


Author: thilo
Date: 2011-02-04 12:16:53 -0500 (Fri, 04 Feb 2011)
New Revision: 1852

Modified:
   trunk/code/client/cl_main.c
Log:
Fix division by zero, reported by Simon McVittie


Modified: trunk/code/client/cl_main.c
===================================================================
--- trunk/code/client/cl_main.c	2011-02-04 17:01:08 UTC (rev 1851)
+++ trunk/code/client/cl_main.c	2011-02-04 17:16:53 UTC (rev 1852)
@@ -3127,6 +3127,7 @@
 	// offset for the power function (for style 1, ignored otherwise)
 	// this should be set to the max rate value
 	cl_mouseAccelOffset = Cvar_Get( "cl_mouseAccelOffset", "5", CVAR_ARCHIVE );
+	Cvar_CheckRange(cl_mouseAccelOffset, 0.001, 50000.0, qfalse);
 
 	cl_showMouseRate = Cvar_Get ("cl_showmouserate", "0", 0);
 



More information about the quake3-commits mailing list