gl_conspin (note NOT r_conspin as my original commit of this useless

feature said) can now be set to something other than 0 or 1.  It now
controls the speed at which the console rotates.  Set it to 0 and it
won't rotate at all.  1 is as fast as it was before, .5 is half as
fast, 100 is insane, etc.
This commit is contained in:
Joseph Carter 2000-03-04 10:49:34 +00:00
parent 6dc6e13b3c
commit 76c3e731c1

View file

@ -832,13 +832,15 @@ void Draw_ConsoleBackground (int lines)
if (gl_conspin->value)
{
static float xangle = 0, xfactor = .3f, xstep = .005f;
static float xangle = 0;
static float xfactor = .3f;
static float xstep = .005f;
glPushMatrix ();
glMatrixMode (GL_TEXTURE);
glPushMatrix ();
glLoadIdentity ();
xangle += 1.0f;
xangle += gl_conspin->value;
xfactor += xstep;
if (xfactor > 8 || xfactor < .3f)
xstep = -xstep;