From ad13f9f26caa0d03fd71750bd20e834803693887 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 3 Mar 2006 19:18:48 +0000 Subject: Fix loss of precision when turning with mouse. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 407 --- src/i_video.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/i_video.c') diff --git a/src/i_video.c b/src/i_video.c index 6dd43ca8..f1f2c844 100644 --- a/src/i_video.c +++ b/src/i_video.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: i_video.c 283 2006-01-12 01:34:48Z fraggle $ +// $Id: i_video.c 407 2006-03-03 19:18:48Z fraggle $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard @@ -175,7 +175,7 @@ //----------------------------------------------------------------------------- static const char -rcsid[] = "$Id: i_video.c 283 2006-01-12 01:34:48Z fraggle $"; +rcsid[] = "$Id: i_video.c 407 2006-03-03 19:18:48Z fraggle $"; #include #include @@ -454,7 +454,7 @@ static int AccelerateMouse(int val) if (val < 0) return -AccelerateMouse(-val); - return (int) pow(val, mouse_acceleration) / 5; + return (int) pow(((float) val) / mouse_acceleration, mouse_acceleration); } void I_GetEvent(void) -- cgit v1.2.3