-> 1111 Feb 25 Joseph Carter ( 3.0K) [Twilight-commits] Module twilight: Change committed
Our 1111th commit is mine. w00t.
--
Joseph Carter <[EMAIL PROTECTED]> My opinions are always right
If I have trouble installing Linux, something is wrong. Very wrong.
-- Linus Torvalds
--- Begin Message ---Commiter : knghtbrd CVSROOT : /cvsroot/twilight Module : twilight Commit time: 2002-02-25 20:45:33 UTC Log message: The sine wave used to flash the cursor is now clipped at 0. That means hud_chflash 0.2 will only brighten the crosshair, and -0.2 will only make it darker. This really looks much better. Modified files: include/mathlib.h nq/gl_draw.c qw/gl_draw.cIndex: twilight/include/mathlib.h diff -u twilight/include/mathlib.h:1.24 twilight/include/mathlib.h:1.25 --- twilight/include/mathlib.h:1.24 Tue Feb 19 07:45:54 2002 +++ twilight/include/mathlib.h Mon Feb 25 12:45:22 2002 @@ -21,7 +21,7 @@ 59 Temple Place - Suite 330 Boston, MA 02111-1307, USA - $Id: mathlib.h,v 1.24 2002/02/19 15:45:54 knghtbrd Exp $ + $Id: mathlib.h,v 1.25 2002/02/25 20:45:22 knghtbrd Exp $ */ // mathlib.h @@ -56,6 +56,10 @@ #ifndef bound #define bound(a,b,c) (max(a, min(b, c))) +#endif + +#ifndef boundsign +#define boundsign(a, b) ((b) > 0 ? max(0, (a)) : min ((a), 0)) #endif #ifndef BIT Index: twilight/nq/gl_draw.c diff -u twilight/nq/gl_draw.c:1.79 twilight/nq/gl_draw.c:1.80 --- twilight/nq/gl_draw.c:1.79 Thu Feb 21 01:11:29 2002 +++ twilight/nq/gl_draw.c Mon Feb 25 12:45:22 2002 @@ -23,7 +23,7 @@ */ static const char rcsid[] = - "$Id: gl_draw.c,v 1.79 2002/02/21 09:11:29 knghtbrd Exp $"; + "$Id: gl_draw.c,v 1.80 2002/02/25 20:45:22 knghtbrd Exp $"; #ifdef HAVE_CONFIG_H # include <config.h> @@ -559,6 +559,7 @@ // else VectorCopy (d_8tofloattable[color], base); ofs = Q_sin (cl.time * M_PI * hud_chspeed->fvalue) * hud_chflash->fvalue; + ofs = boundsign (ofs, hud_chflash->fvalue); VectorSlide (d_8tofloattable[color], ofs, base); base[3] = hud_chalpha->fvalue; qglColor4fv (base); Index: twilight/qw/gl_draw.c diff -u twilight/qw/gl_draw.c:1.80 twilight/qw/gl_draw.c:1.81 --- twilight/qw/gl_draw.c:1.80 Thu Feb 21 01:11:29 2002 +++ twilight/qw/gl_draw.c Mon Feb 25 12:45:22 2002 @@ -23,7 +23,7 @@ */ static const char rcsid[] = - "$Id: gl_draw.c,v 1.80 2002/02/21 09:11:29 knghtbrd Exp $"; + "$Id: gl_draw.c,v 1.81 2002/02/25 20:45:22 knghtbrd Exp $"; #ifdef HAVE_CONFIG_H # include <config.h> @@ -566,6 +566,7 @@ // else VectorCopy (d_8tofloattable[color], base); ofs = Q_sin (cl.time * M_PI * hud_chspeed->fvalue) * hud_chflash->fvalue; + ofs = boundsign (ofs, hud_chflash->fvalue); VectorSlide (d_8tofloattable[color], ofs, base); base[3] = hud_chalpha->fvalue; qglColor4fv (base);--- End Message ---
msg00905/pgp00000.pgp
Description: PGP signature
