From 31d99e2c4ec1745ead68f43737af074c64973c01 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Fri, 4 Feb 2011 17:16:53 +0000 Subject: [PATCH] Fix division by zero, reported by Simon McVittie --- code/client/cl_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/code/client/cl_main.c b/code/client/cl_main.c index 770f7183..2dbf585f 100644 --- a/code/client/cl_main.c +++ b/code/client/cl_main.c @@ -3127,6 +3127,7 @@ void CL_Init( void ) { // 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);