more stupid errors...

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1452 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2005-10-08 05:05:09 +00:00
parent e7831ef52f
commit 6523dc2235

View file

@ -1290,9 +1290,11 @@ void GLDraw_Crosshair(void)
float x1, x2, y1, y2; float x1, x2, y1, y2;
float size, chc; float size, chc;
int c, c2, i, usecolor; int c2, c, i, usecolor;
int chrebuild;
usecolor = 0; usecolor = 0;
c2 = c = 0; // shut up msvc
if (crosshair.value == 1 && !*crosshairimage.string) if (crosshair.value == 1 && !*crosshairimage.string)
{ {
@ -1305,7 +1307,9 @@ void GLDraw_Crosshair(void)
} }
GL_TexEnv(GL_MODULATE); GL_TexEnv(GL_MODULATE);
if (chmodified != crosshaircolor.modified) chrebuild = chmodified != crosshair.modified || crosshair.modified || crosshair.value >= FIRSTANIMATEDCROSHAIR;
if (chrebuild)
{ {
char *t; char *t;
@ -1362,7 +1366,7 @@ void GLDraw_Crosshair(void)
GL_Bind (cs_texture); GL_Bind (cs_texture);
chc = 1/16.0; chc = 1/16.0;
if (crosshair.modified || crosshair.value >= FIRSTANIMATEDCROSHAIR) if (chrebuild)
{ {
crosshair.modified = false; crosshair.modified = false;