summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2006-03-03 19:18:48 +0000
committerSimon Howard2006-03-03 19:18:48 +0000
commitad13f9f26caa0d03fd71750bd20e834803693887 (patch)
tree8f5876091cb7c2ec515397604fa91c5cfe8c52ee /src
parent9f994d9c980cf5fb64246b2cc1572e043dff6752 (diff)
downloadchocolate-doom-ad13f9f26caa0d03fd71750bd20e834803693887.tar.gz
chocolate-doom-ad13f9f26caa0d03fd71750bd20e834803693887.tar.bz2
chocolate-doom-ad13f9f26caa0d03fd71750bd20e834803693887.zip
Fix loss of precision when turning with mouse.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 407
Diffstat (limited to 'src')
-rw-r--r--src/i_video.c6
1 files changed, 3 insertions, 3 deletions
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 <SDL.h>
#include <ctype.h>
@@ -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)