Iron Sights Bug: fixed.

Ryan C. Gordon icculus at clutteredmind.org
Mon Mar 29 10:39:51 EST 2004


Okay guys, please try these binaries and see if it helps:

  http://icculus.org/~icculus/tmp/COD-lnxded-1.3-ironsights.tar.bz2

There was an integer overflow in the random number generator code
(apparently RAND_MAX is higher in glibc than Microsoft's C runtime?),
which caused the gun to fire strangely.

The .pk3 fix going around wasn't really fixing the problem so much as
masking it. You should remove it before using this build, or your guns
may be strange in the opposite direction (plus you don't need your
clients to install the .pk3 anymore).

This SHOULD fix it, but since there were a few unrelated places using
the same code to get random numbers, please don't blast it out to all
your production servers without a little testing, in case some new bug
shows up. This one hasn't gone through any QA at all.

Comments welcome.

--ryan.






More information about the Cod mailing list