[quake3-bugzilla] [Bug 4691] New: cl_mouseAccelOffset 0 causes division by zero

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Fri Aug 6 13:08:31 EDT 2010


http://bugzilla.icculus.org/show_bug.cgi?id=4691

           Summary: cl_mouseAccelOffset 0 causes division by zero
           Product: ioquake3
           Version: SVN HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P3
         Component: Misc
        AssignedTo: zakk at icculus.org
        ReportedBy: smcv-ioquake3 at pseudorandom.co.uk
         QAContact: quake3-bugzilla at icculus.org


Created an attachment (id=2386)
 --> (http://bugzilla.icculus.org/attachment.cgi?id=2386)
Clip cl_mouseAccelOffset at 0.001 to avoid division by zero

Setting cl_mouseAccelOffset to 0 will cause division by zero.

The modified ioquake3 included with OpenArena 0.8.5 has this change, which
turns off acceleration entirely in that situation:

http://git.debian.org/?p=pkg-games/openarena.git;a=blob;f=debian/patches/0010-CL_MouseMove-some-sort-of-mouse-acceleration-tweak.patch;h=d8953df5f0eb9807c63571ce370e4fbf7f6d9b33;hb=master

However, a more targeted fix would be to clip ridiculous values of
cl_mouseAccelOffset at a small nonzero value. I've attached a patch to do that.

-- 
Configure bugmail: http://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the quake3-bugzilla mailing list