mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-28 22:52:01 +00:00
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:
parent
6dc6e13b3c
commit
76c3e731c1
1 changed files with 4 additions and 2 deletions
|
@ -832,13 +832,15 @@ void Draw_ConsoleBackground (int lines)
|
||||||
|
|
||||||
if (gl_conspin->value)
|
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 ();
|
glPushMatrix ();
|
||||||
glMatrixMode (GL_TEXTURE);
|
glMatrixMode (GL_TEXTURE);
|
||||||
glPushMatrix ();
|
glPushMatrix ();
|
||||||
glLoadIdentity ();
|
glLoadIdentity ();
|
||||||
xangle += 1.0f;
|
xangle += gl_conspin->value;
|
||||||
xfactor += xstep;
|
xfactor += xstep;
|
||||||
if (xfactor > 8 || xfactor < .3f)
|
if (xfactor > 8 || xfactor < .3f)
|
||||||
xstep = -xstep;
|
xstep = -xstep;
|
||||||
|
|
Loading…
Reference in a new issue